-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-infra.yml
50 lines (46 loc) · 1.08 KB
/
docker-compose-infra.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
version: '3.8'
services:
# mysql
mysql:
image: mysql:8.0
container_name: dosirak-mysql
platform: linux/arm64/v8
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
restart: always
environment:
MYSQL_DATABASE: dosirak-mysql
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: tunamayo
MYSQL_PASSWORD: tunamayo
TZ: Asia/Seoul
MYSQL_MAX_CONNECTIONS: 1000
MYSQL_SSL_MODE: DISABLED
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "23306:3306"
volumes:
- mysql-data:/var/lib/mysql
deploy:
resources:
limits:
cpus: '2.0'
memory: 1GB
reservations:
cpus: '0.2'
memory: 1GB
healthcheck:
start_period: 5s
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
interval: 5s
timeout: 4s
retries: 200
networks:
- dosirak-network
networks:
dosirak-network:
volumes:
mysql-data: