-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.04 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
version: "3.9"
services:
db:
image: mysql:8.0.33
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- "${DB_PORT}:3306"
volumes:
- "db_data:/var/lib/mysql"
- "./config/my.conf:/etc/mysql/conf.d/my.cnf"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
TZ: Asia/Tokyo
backend:
build:
dockerfile: "./Dockerfile.develop"
target: "development"
volumes:
- "./:/app"
ports:
- "${BACKEND_PORT}:8000"
env_file:
- ".env"
admin:
build:
dockerfile: "./Dockerfile.develop"
target: "admin"
volumes:
- "./:/app"
env_file:
- ".env"
node_tool:
build:
dockerfile: "./Dockerfile.develop"
target: "node_tool"
volumes:
- "./:/app"
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.2.1
environment:
PMA_HOST: db
ports:
- "8080:80"
volumes:
db_data: