-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yaml
More file actions
53 lines (49 loc) · 1.18 KB
/
docker-compose.prod.yaml
File metadata and controls
53 lines (49 loc) · 1.18 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
services:
ph-db:
image: postgres:16-alpine
container_name: ph-db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ph_health
volumes:
- ph-pg-data:/var/lib/postgresql/data
networks:
- ph-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d ph_health"]
interval: 10s
timeout: 5s
retries: 10
ph-server:
image: ${REGISTRY}/${IMAGE_NAMESPACE}/ph-healthcare-server:${IMAGE_TAG}
container_name: ph-server
restart: unless-stopped
env_file:
- ./server/.env.production
depends_on:
ph-db:
condition: service_healthy
networks:
- ph-net
ports:
- "127.0.0.1:5000:5000"
ph-client:
image: ${REGISTRY}/${IMAGE_NAMESPACE}/ph-healthcare-client:${IMAGE_TAG}
container_name: ph-client
restart: unless-stopped
environment:
JWT_ACCESS_SECRET: ${JWT_ACCESS_SECRET}
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
depends_on:
- ph-server
networks:
- ph-net
ports:
- "127.0.0.1:3000:3000"
networks:
ph-net:
driver: bridge
volumes:
ph-pg-data: