-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (94 loc) · 2.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.6'
services:
ca:
build:
context: .
dockerfile: Dockerfile.ca
args:
ARG_CA_NAME: ${CA_NAME}
ARG_STATE: ${STATE}
ARG_CITY: ${CITY}
ARG_ORGANIZATIONAL_UNIT: ${ORGANIZATIONAL_UNIT}
container_name: ca-setup-hardened
healthcheck:
test: bash -c "if [[ -f /tak/certs/files/admin.pem ]]; then exit 0; else exit 1; fi"
interval: 30s
timeout: 15s
retries: 5
start_period: 30s
networks:
- takserver-net-hardened
db:
build:
context: .
dockerfile: Dockerfile.hardened-takserver-db
container_name: tak-database-hardened
environment:
- envpass=${DB_PASS}
ports:
- 5432:5432
networks:
takserver-net-hardened:
aliases:
- tak-database
volumes:
- tak-db:/var/lib/postgresql/data:z
depends_on:
ca:
condition: service_healthy
server:
build:
context: .
dockerfile: Dockerfile.hardened-takserver
container_name: takserver-hardened
ports:
- 8089:8089
- 8443:8443
- 8444:8444
- 8446:8446
networks:
- takserver-net-hardened
depends_on:
db:
condition: service_healthy
# hubdb:
# build:
# context: .
# dockerfile: Dockerfile.fedhub-db
# container_name: hubdb
# ports:
# - 27017:27017
# networks:
# - takserver-net-hardened
# volumes:
# - hub-db:/var/lib/postgresql/data:z
# - ${HUB_RELEASE}/tak/configs:/opt/tak/federation-hub/configs:z
# depends_on:
# db:
# condition: service_healthy
# hub:
# build:
# context: .
# dockerfile: Dockerfile.fedhub
# container_name: hub
# ports:
# - 8080:8080
# networks:
# - takserver-net-hardened
# depends_on:
# hubdb:
# condition: service_healthy
networks:
takserver-net-hardened:
name: takserver-net-hardened
ipam:
driver: default
config:
- subnet: ${DOCKER_SUBNET}
volumes:
tak-db:
name: tak-db
driver: local
hub-db:
name: hub-db
driver: local