-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
44 lines (44 loc) · 1.1 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
version: '3.8'
services:
nginx:
image: 390613096869.dkr.ecr.us-east-2.amazonaws.com/online-school-nginx:latest
ports:
- '80:80'
depends_on:
- backend
- database
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 2
window: 120s
backend:
image: 390613096869.dkr.ecr.us-east-2.amazonaws.com/online-school-backend:latest
env_file:
- .env
depends_on:
- database
command: node /app/build/src/app.js
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 2
window: 120s
database:
image: postgres:14.1-alpine
env_file:
- .env
volumes:
- pg-data-prod:/var/lib/postgresql/data
ports:
- '5432:5432'
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 2
window: 120s
volumes:
pg-data-prod: