-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
77 lines (73 loc) · 2.15 KB
/
docker-compose.prod.yml
File metadata and controls
77 lines (73 loc) · 2.15 KB
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
services:
keycloak:
build:
context: .
dockerfile: Dockerfile.keycloak
container_name: proxy-smart-keycloak-prod
environment:
KC_HOSTNAME: localhost
KC_HOSTNAME_PORT: 8080
KC_PROXY: edge
KC_CACHE: ispn
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USERNAME: postgres
KC_DB_PASSWORD: ${KC_DB_PASSWORD:?Set KC_DB_PASSWORD}
KC_HTTP_ENABLED: true
KC_HEALTH_ENABLED: true
KC_METRICS_ENABLED: true
ports:
- "8080:8080"
volumes:
- ./keycloak/realm-export.json:/opt/keycloak/data/import/realm-export.json:ro
depends_on:
postgres:
condition: service_healthy
networks:
- proxy-smart
postgres:
image: postgres:16-alpine
container_name: proxy-smart-postgres-prod
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./keycloak/database/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
networks:
- proxy-smart
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d keycloak"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: Dockerfile
target: backend
container_name: proxy-smart-backend
environment:
NODE_ENV: production
PORT: 8445
BASE_URL: http://localhost:8445
KEYCLOAK_BASE_URL: http://keycloak:8080
KEYCLOAK_DOMAIN: localhost
KEYCLOAK_REALM: proxy-smart
KEYCLOAK_JWKS_URI: http://keycloak:8080/realms/proxy-smart/protocol/openid-connect/certs
KEYCLOAK_ADMIN_CLIENT_ID: admin-service
KEYCLOAK_ADMIN_CLIENT_SECRET: ${KEYCLOAK_ADMIN_CLIENT_SECRET:?Set KEYCLOAK_ADMIN_CLIENT_SECRET}
FHIR_SERVER_BASE: https://hapi.fhir.org/baseR4,https://server.fire.ly # Multiple FHIR servers can be specified, separated by commas
ports:
- "8445:8445"
depends_on:
- keycloak
networks:
- proxy-smart
networks:
proxy-smart:
name: proxy-smart-network
driver: bridge
volumes:
postgres_data: