-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
63 lines (59 loc) · 1.24 KB
/
docker-compose.dev.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3'
services:
mysql:
volumes:
- ./data_mysql:/var/lib/mysql
tty: true
build:
context: .
dockerfile: ./docker/mysql/Dockerfile
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: secrethome
TZ: Asia/Tokyo
command: mysqld --default-authentication-plugin=mysql_native_password
nginx:
volumes:
- ./data_files:/data_files
tty: true
ports:
- '60132:60132'
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
environment:
TZ: Asia/Tokyo
backend:
volumes:
- ./backend:/backend
- ./data_files:/backend/data_files
tty: true
ports:
- '60133:60133'
build:
context: ./
dockerfile: ./docker/backend/dev/Dockerfile
working_dir: /backend
environment:
TZ: Asia/Tokyo
depends_on:
- mysql
web:
volumes:
- ./next_app:/next_app
- ./backend/proto:/next_app/proto
- /next_app/node_modules
tty: true
ports:
- '60131:3000'
build:
context: ./
dockerfile: ./docker/next_app/dev/Dockerfile
working_dir: /next_app
environment:
TZ: Asia/Tokyo
#entrypoint: "npm run dev"
depends_on:
- mysql
- nginx
- backend