-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.yml
More file actions
70 lines (66 loc) · 1.26 KB
/
dev.yml
File metadata and controls
70 lines (66 loc) · 1.26 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
db:
ports:
- 5432:5432
env_file:
- path: ".env.dev"
required: true
volumes:
- ./data.sql:/docker-entrypoint-initdb.d/data1.sql
- ./mock-data.sql:/docker-entrypoint-initdb.d/data2.sql
extends:
file: common.yml
service: db
pgadmin:
ports:
- 5000:80
env_file:
- path: ".env.dev"
required: true
depends_on:
- db
extends:
file: common.yml
service: pgadmin
nginx:
ports:
- 80:80
volumes:
- ./nginx-dev.conf:/etc/nginx/nginx.conf
depends_on:
- backend
- frontend
extends:
file: common.yml
service: nginx
backend:
build:
dockerfile: Dockerfile.dev
ports:
- 3000:3000
env_file:
- path: ".env.dev"
required: true
volumes:
- ../backend/src:/app/src
- ../backend/include:/app/include
depends_on:
- db
extends:
file: common.yml
service: backend
frontend:
command: npm run dev
ports:
- 4000:4000
env_file:
- path: ".env.dev"
required: true
volumes:
- ../frontend/src:/app/src
- /app/node_modules
depends_on:
- backend
extends:
file: common.yml
service: frontend