-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
159 lines (157 loc) · 3.2 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: "3"
services:
postgresql:
image: postgres:15
container_name: postgres
restart: always
volumes:
- postgresql:/var/lib/postgresql/data
- ./deployment/init:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
networks:
- portal-backend
pki-rest-interface:
build:
context: .
dockerfile: Dockerfile
args:
- SERVICE=pki-rest-interface
restart: always
depends_on:
- domain-rest-interface
- pki-service
networks:
- portal-backend
ports:
- "8080:8080"
env_file:
- .env
command:
- --level
- "debug"
- --audience
- "$AUDIENCE"
- --jwks_uri
- "$JWKS_URI"
- --ssl_service
- "pki-service:8081"
- --smime_service
- "pki-service:8081"
- --domain_service
- "domain-rest-interface:8083"
pki-service:
build:
context: .
dockerfile: Dockerfile
args:
- SERVICE=pki-service
restart: always
depends_on:
- postgresql
networks:
- portal-backend
ports:
- "8081:8081"
env_file:
- .env
command:
- --level
- "debug"
- --sectigo_user
- "$SECTIGO_USER"
- --sectigo_customeruri
- "DFN"
- --sectigo_password
- "$SECTIGO_PASSWORD"
- --ssl_org_id
- "$SSL_ORG_ID"
- --ssl_term
- "365"
- --ssl_profile
- "15863"
- --smime_profile
- "16307"
- --smime_org_id
- "$SMIME_ORG_ID"
- --smime_term
- "1095"
- --smime_key_length
- "3072"
- --smime_student_term
- "365"
- --smime_key_type
- "RSA"
- --db
- "postgresql://pki:pki@postgres/certificates"
eab-rest-interface:
build:
context: .
dockerfile: Dockerfile
args:
- SERVICE=eab-rest-interface
restart: always
networks:
- portal-backend
depends_on:
- postgresql
- domain-rest-interface
env_file:
- .env
command:
- --level
- "debug"
- --audience
- "$AUDIENCE"
- --jwks_uri
- "$JWKS_URI"
- --db
- "postgresql://acme:acme@postgres/eab"
- --acme_db
- "postgresql://acme:acme@postgres/acme"
- --provisioner_id
- "acme/acme"
- --domain_service
- "domain-rest-interface:8083"
domain-rest-interface:
build:
context: .
dockerfile: Dockerfile
args:
- SERVICE=domain-rest-interface
restart: always
networks:
- portal-backend
depends_on:
- postgresql
- pki-service
env_file:
- .env
command:
- --level
- "debug"
- --audience
- "$AUDIENCE"
- --jwks_uri
- "$JWKS_URI"
- --db
- "postgresql://pki:pki@postgres/domain"
- --ssl_service
- "pki-service:8081"
- --grpc-port
- "8083"
ports:
- "8082:8080"
- "8083:8083"
volumes:
postgresql:
networks:
portal-frontend:
name: frontend
portal-backend:
name: portal-backend