-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 763 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 763 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
version: "3.8"
services:
frontend:
build: ./frontend
ports:
- "8080:8080"
volumes:
- ./frontend:/app
- ./frontend/.env:/app/.env
- /app/node_modules
working_dir: /app
depends_on:
- backend
backend:
build: ./backend
ports:
- "8000:8000"
volumes:
- ./backend:/app
- /app/node_modules
working_dir: /app
command: npm start
depends_on:
- mysql
env_file:
- ./backend/.env
mysql:
image: mysql:8
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: db_restaurant
ports:
- "3306:3306"
volumes:
- ./database:/docker-entrypoint-initdb.d
- mysql_data:/var/lib/mysql
volumes:
mysql_data: