-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (77 loc) · 2.28 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
version: '3'
services:
web-app:
build: ./emcare-web
environment:
- KEYCLOACK_SERVER_URL=http://keycloak:8080/auth
- KEYCLOACK_CLIENT_SECRET=${KEYCLOACK_CLIENT_SECRET}
- KEYCLOACK_CLIENT_ID=${KEYCLOACK_CLIENT_ID}
- KEYCLOACK_REALM=emcare
- KEYCLOACK_USER_NAME=${KEYCLOACK_USER_NAME}
- KEYCLOACK_PASSWORD=${KEYCLOACK_PASSWORD}
- KEYCLOAK_ADMIN_USER=${KEYCLOAK_ADMIN_USER}
- KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD}
- DB_HOST=postgres-app
- DB_NAME=webapp
- DB_PASSWORD=${DB_PASSWORD}
- DB_USER=${DB_USER}
- TWILLO_SSID=${TWILLO_SSID}
- TWILLO_TOKEN=${TWILLO_TOKEN}
- TWILLO_SID=${TWILLO_SID}
- TWILLO_NUMBER=${TWILLO_NUMBER}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_USER=${MAIL_USER}
- MAIL_SERVER=${MAIL_SERVER}
- MAIL_PORT=${MAIL_PORT}
- IBM_KEY=${IBM_KEY}
depends_on:
- postgres-app
nginx:
build:
context: ./emcare-ui
args:
- NG_APP_API_URL="api"
- NG_APP_KC_URL="${KEYCLOACK_SERVER_URL}"
- NG_APP_QUESTIONNAIRE_BUILDER_URL="https://emcare.argusoft.com/questionnaireBuilder"
- NG_APP_SSO_USER="${KEYCLOACK_CLIENT_ID}"
- NG_APP_SSO_SECRET="${KEYCLOACK_CLIENT_SECRET}"
restart: on-failure
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
# need to be 1.1 mapping for the reverse proxy port
- 8080:8080
depends_on:
- keycloak
- web-app
keycloak:
image: jboss/keycloak
restart: on-failure
environment:
- PROXY_ADDRESS_FORWARDING=true
- KEYCLOAK_USER=${KEYCLOAK_ADMIN_USER}
- KEYCLOAK_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD}
- DB_DATABASE=keycloakdb
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_VENDOR=postgres
- DB_ADDR=postgres-kc
postgres-kc:
image: postgres:10
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: keycloakdb
volumes:
- pgdata:/var/lib/postgresql/data
postgres-app:
image: postgres:10
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: webapp
volumes:
- pgdata-app:/var/lib/postgresql/data
volumes:
pgdata:
pgdata-app: