-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1.02 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
version: "3.8"
services:
db:
container_name: db
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
# volumes:
# - ./backend/db/mysql_data:/var/lib/mysql
environment:
TZ: Asia/Tokyo
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: dev
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
# user: 1002:1002
# ports:
# - 3307:3306
frontend:
container_name: frontend
build:
dockerfile: Dockerfile.dev
context: ./frontend
volumes:
- ./frontend:/app
ports:
- 8080:8080
command: npm run serve
backend:
container_name: backend
build:
dockerfile: Dockerfile.dev
context: ./backend
env_file:
- backend.env
# user: 1002:1002
# command: bash -c "./wait-for-it.sh db:3306 --timeout=5"
command: bash -c "./wait-for-it.sh db:3306 --timeout=5"
volumes:
- ./backend:/backend
depends_on:
- db
ports:
- 3000:3000