-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
63 lines (58 loc) · 1.19 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3.7"
services:
rust:
container_name: rust
build:
context: ./backend
target: developer
volumes:
- ./backend:/app
- ./backend/cache/cargo:/usr/local/cargo/registry
ports:
- 8080:8080
command: bash ./sh/setup.sh
environment:
TZ: Asia/Tokyo
node:
container_name: node
build:
context: ./frontend
target: developer
volumes:
- ./frontend:/app
ports:
- 3000:3000
- 6006:6006
- 9229:9229
command: bash ./sh/setup.sh
environment:
TZ: Asia/Tokyo
redis:
container_name: redis
build:
context: ./session
volumes:
- ./session/data:/data
ports:
- 6379:6379
command: bash /tmp/setup.sh
environment:
TZ: Asia/Tokyo
mysql:
container_name: mysql
build:
context: ./database
volumes:
- ./database/data:/var/lib/mysql
- ./database/logs:/var/log/mysql
ports:
- 3306:3306
command: bash /tmp/setup.sh
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dev_db
MYSQL_USER: apu
MYSQL_PASSWORD: secret
UID: ${USER_ID:-1000}
GID: ${GROUP_ID:-1000}
TZ: Asia/Tokyo