-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
51 lines (46 loc) · 971 Bytes
/
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
version: '3.9'
name: matchmaker-prod
services:
app-migrate:
build: .
image: gcr.si/frilan/dev/matchmaker:latest
env_file:
- .env.prod
command: prisma migrate deploy
depends_on:
app-db:
condition: service_healthy
app:
restart: always
build: .
image: gcr.si/frilan/dev/matchmaker:latest
ports:
- '80:3000'
volumes:
- ./config/prod:/app/config
env_file:
- .env.prod
healthcheck:
test: curl -f http://localhost:3000
interval: 10s
timeout: 5s
retries: 5
depends_on:
app-db:
condition: service_healthy
app-migrate:
condition: service_completed_successfully
app-db:
image: postgres:16
restart: always
env_file:
- .env.prod
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 10s
timeout: 5s
retries: 5
volumes:
- app-db:/var/lib/postgresql/data
volumes:
app-db: