-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-dev-example.yml
More file actions
60 lines (52 loc) · 1.04 KB
/
docker-compose-dev-example.yml
File metadata and controls
60 lines (52 loc) · 1.04 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
version: '3'
networks:
app-tier:
driver: bridge
services:
db:
container_name: 'db'
image: mysql:8.0.27
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- '3307:3306'
volumes:
- ./mysql_dev:/var/lib/mysql
env_file:
- ./mysql.env
networks:
- app-tier
backend:
container_name: 'back_end'
build:
context: ./backend
dockerfile: Dockerfile.dev
volumes:
- ./backend:/home/node/api
- /home/node/api/node_modules
ports:
- '3333:3333'
depends_on:
- db
restart: on-failure
env_file:
- ./backend/.env
networks:
- app-tier
frontend:
container_name: 'front_end'
build:
context: ./frontend
dockerfile: Dockerfile.dev
env_file:
- ./frontend/.env
volumes:
- ./frontend:/home/node/react
- /home/node/react/node_modules
ports:
- '3000:3000'
depends_on:
- backend
restart: on-failure
networks:
- app-tier