-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
63 lines (60 loc) · 1.23 KB
/
docker-compose.prod.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
services:
client-ui:
restart: always
image: ghcr.io/moby-it/ppo-ui:latest
ports:
- 43001:80
depends_on:
- web-api
migrate:
build:
context: src/web-api
target: build
secrets:
- npmrc
command: ["npx", "prisma", "migrate", "deploy"]
env_file:
- src/web-api/.env
depends_on:
db:
condition: service_healthy
web-api:
restart: always
image: ghcr.io/moby-it/ppo-api:latest
ports:
- 43002:3000
env_file:
- src/web-api/.env
depends_on:
migrate:
condition: service_completed_successfully
calc-odds-api:
condition: service_started
calc-odds-api:
restart: always
image: ghcr.io/moby-it/ppo-calc-odds:latest
env_file: src/calc-odds-api/.env
ports:
- 43003:7071
depends_on:
- db
db:
restart: always
image: postgres:16.3
env_file: db.env
healthcheck:
test: ["CMD", "pg_isready", "-d", "gtop", "-U", "postgres"]
start_period: 10s
interval: 3s
timeout: 5s
retries: 5
ports:
- "43004:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
volumes:
postgres-data:
external: true
secrets:
npmrc:
file: .npmrc