-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.05 KB
/
docker-compose.yml
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
version: "3"
services:
db:
container_name: mysql
build:
context: ./db
dockerfile: Dockerfile
platform: linux/amd64
command: mysqld --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- "3306:3306"
volumes:
# init.sql로 db 초기화
- ./db/mysql-init-file:/docker-entrypoint-initdb.d/:ro
- ./db/data:/var/lib/mysql
frontend:
container_name: frontend
restart: unless-stopped
build:
context: ./Mindspace_front
command: ["yarn", "start"]
ports:
- 3000:3000
volumes:
- ./Mindspace_front/:/frontend/
- ./Mindspace_front/node_modules/:/frontend/node_modules
environment:
- CI=true
- CHOKIDAR_USEPOLLING=true
- REACT_APP_BACKEND_URL=http://localhost:8000
tty: true
# backend:
# container_name: backend
# build:
# context: ./Mindspace_backend
# dockerfile: Dockerfile
# ports:
# - "8080:8080"
# depends_on:
# - db
# links:
# - db