-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (49 loc) · 964 Bytes
/
docker-compose.yaml
File metadata and controls
53 lines (49 loc) · 964 Bytes
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
version: "3.6"
services:
# Front
front:
container_name: front_todo
build: front/
volumes:
- ./front/src:/usr/src/front/src
- ./front/public:/usr/src/front/public
working_dir: /usr/src/front
ports:
- "3000:3000"
env_file:
- .env.local
networks:
- fastlabel_todo_link
# API
api:
container_name: api_todo
build:
context: api/
volumes:
- ./api/src:/usr/src/api/src
working_dir: /usr/src/api
ports:
- "4000:4000"
env_file:
- .env.local
networks:
- fastlabel_todo_link
# MySQL
mysql:
container_name: mysql_todo
image: mysql:5.7
platform: linux/amd64
ports:
- "3306:3306"
volumes:
- ./mysql:/etc/mysql/conf.d/:ro
- mysql_data_todo:/var/lib/mysql
env_file:
- .env.local
networks:
- fastlabel_todo_link
volumes:
mysql_data_todo:
networks:
fastlabel_todo_link:
external: true