-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (36 loc) · 1.02 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
version: '3.1'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password --init-file /data/application/init.sql
volumes:
- ./backend/init.sql:/data/application/init.sql
restart: always
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: consolestock
MYSQL_USER: consolestock
MYSQL_PASSWORD: cs4345
ports:
- 3306:3306
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: always
ports:
- 8000:8000
volumes:
- ./backend:/usr/src/app/backend
- /usr/src/app/backend/node_modules
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
ports:
- 8080:8080
volumes:
- ./frontend:/usr/src/app/frontend
- /usr/src/app/frontend/node_modules