-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 1.19 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
version: '3.5'
services:
rw-mysql:
container_name: rw-mysql
image: mysql/mysql-server:8.0.30
ports:
- "4407:3306"
volumes:
- ./docker-compose/rw/mysql-init.d:/docker-entrypoint-initdb.d
- ./docker-compose/rw/config:/etc/mysql/conf.d
- ./.volumes/rw-mysql:/var/lib/mysql
command: [ "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--lower_case_table_names=1", ]
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_ROOT_HOST: "%"
TZ: "Asia/Seoul"
ro-mysql:
container_name: ro-mysql
image: mysql/mysql-server:8.0.30
ports:
- "4408:3306"
volumes:
- ./docker-compose/ro/mysql-init.d:/docker-entrypoint-initdb.d
- ./docker-compose/ro/config:/etc/mysql/conf.d
- ./.volumes/ro-mysql:/var/lib/mysql
command: [ "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--lower_case_table_names=1", ]
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_ROOT_HOST: "%"
TZ: "Asia/Seoul"
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
- rw-mysql