-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
82 lines (75 loc) · 1.45 KB
/
docker-compose.dev.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3.9"
services:
admin:
build:
context: .
dockerfile: ./apps/admin/Dockerfile
image: admin-dev
restart: always
container_name: admin-dev
volumes:
- ./apps/admin/src:/usr/src/app/apps/admin/src:ro
networks:
- mynetwork
frontend:
build:
context: .
dockerfile: ./apps/frontend/Dockerfile
image: frontend-dev
restart: always
container_name: frontend-dev
volumes:
- ./apps/frontend/src:/usr/src/app/apps/frontend/src:ro
networks:
- mynetwork
backend:
build:
context: .
dockerfile: ./apps/backend/Dockerfile.dev
image: backend-dev
env_file:
- .env
depends_on:
- db
restart: always
container_name: backend-dev
volumes:
- ./apps/backend/src:/usr/src/app/apps/backend/src:ro
networks:
- mynetwork
db:
image: postgres
env_file:
- .env
container_name: db-dev
restart: always
networks:
- mynetwork
nginx:
build:
context: .
dockerfile: ./deploy/Dockerfile.dev
image: nginx-dev
restart: always
depends_on:
- admin
- frontend
- backend
ports:
- 3000:80
- 443:443
container_name: nginx-dev
networks:
- mynetwork
adminer:
image: adminer
restart: always
container_name: adminer
ports:
- 8080:8080
links:
- db:db
networks:
- mynetwork
networks:
mynetwork: