-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
54 lines (51 loc) ยท 1.31 KB
/
docker-compose.dev.yml
File metadata and controls
54 lines (51 loc) ยท 1.31 KB
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
services:
mysql:
image: mysql:8.0
container_name: buildup-mysql
restart: unless-stopped
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: buildup
MYSQL_USER: buildup
MYSQL_PASSWORD: buildup123
TZ: Asia/Seoul
volumes:
- mysql_data:/var/lib/mysql
- ./docker/mysql/init:/docker-entrypoint-initdb.d # ์ด๊ธฐํ ์คํฌ๋ฆฝํธ (์ ํ์ฌํญ)
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --default-authentication-plugin=mysql_native_password
- --max_allowed_packet=67108864 # 64MB
networks:
- buildup-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"]
interval: 10s
timeout: 5s
retries: 5
phpmyadmin:
image: phpmyadmin/phpmyadmin
platform: linux/amd64 # ARM64 Mac์์ amd64 ์๋ฎฌ๋ ์ด์
๋ช
์
container_name: buildup-phpmyadmin
restart: unless-stopped
ports:
- "8081:80"
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: root
UPLOAD_LIMIT: 100M
depends_on:
- mysql
networks:
- buildup-network
volumes:
mysql_data:
driver: local
networks:
buildup-network:
driver: bridge