-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathdocker-compose-nginx.yml
43 lines (38 loc) · 1.13 KB
/
docker-compose-nginx.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
services:
acme-keycloak-1:
extends:
file: ../docker-compose.yml
service: acme-keycloak
environment:
KEYCLOAK_FRONTEND_URL: https://id.acme.test:2443/auth
depends_on:
acme-keycloak-db:
condition: service_healthy
acme-keycloak-2:
extends:
file: ../docker-compose.yml
service: acme-keycloak
environment:
KEYCLOAK_FRONTEND_URL: https://id.acme.test:2443/auth
depends_on:
acme-keycloak-db:
condition: service_healthy
acme-keycloak-db:
extends:
file: ../docker-compose.yml
service: acme-keycloak-db
acme-nginx-lb:
image: nginx:1.21.0-alpine
# logging:
# driver: none
volumes:
# relative paths needs to be relative to the docker-compose cwd.
- ./nginx.conf:/etc/nginx/conf.d/default.conf:z
# - ./dhparams:/etc/ssl/dhparams:z
- ../../../../config/stage/dev/tls/acme.test+1.pem:/etc/nginx/certs/id.acme.test.crt:z
- ../../../../config/stage/dev/tls/acme.test+1-key.pem:/etc/nginx/certs/id.acme.test.key:z
ports:
- "2443:2443"
depends_on:
- acme-keycloak-1
- acme-keycloak-2