-
Notifications
You must be signed in to change notification settings - Fork 0
/
prod.yml
51 lines (48 loc) · 888 Bytes
/
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
services:
db:
ports:
- 5432:5432
env_file:
- path: ".env.prod"
required: true
volumes:
- ./data.sql:/docker-entrypoint-initdb.d/data.sql
extends:
file: common.yml
service: db
nginx:
ports:
- 80:80
volumes:
- ./nginx-prod.conf:/etc/nginx/nginx.conf
depends_on:
- backend
- frontend
extends:
file: common.yml
service: nginx
backend:
build:
dockerfile: Dockerfile.prod
ports:
- 3000:3000
env_file:
- path: ".env.prod"
required: true
depends_on:
- db
extends:
file: common.yml
service: backend
frontend:
command: npm start
ports:
- 4000:4000
env_file:
- path: ".env.prod"
required: true
depends_on:
- backend
extends:
file: common.yml
service: frontend