-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 905 Bytes
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 905 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.9"
networks:
todo_net:
# driver: bridge
services:
frontend:
build: ./frontend
container_name: frontend
working_dir: /app-front
volumes:
- ./frontend:/app-front
ports:
- 3000:5173
# env_file: ./default.env
networks:
- todo_net
tty: true
restart: always
command: npm run dev
backend:
build:
context: ./backend
user: node
container_name: backend
working_dir: /app-back
volumes:
- ./backend:/app-back
depends_on:
- db
tty: true
ports:
- 3001:3001
env_file: ./default.env
networks:
- todo_net
command: npm run start
restart: always
db:
container_name: database
image: mysql:8.0.23
platform: linux/x86_64
restart: always
ports:
- 3306:3306
- 33060:33060
env_file: ./default.env
networks:
- todo_net