2
0
mirror of https://github.com/acepanel/templates.git synced 2026-02-04 05:07:13 +08:00
Files
templates/mysql/docker-compose.yml
2026-01-31 02:59:45 +08:00

27 lines
657 B
YAML

services:
mysql:
image: mysql:9.6.0
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_DB_ROOT_PASSWORD}
networks:
- acepanel-network
ports:
- ${MYSQL_PORT}:3306
volumes:
- ./data/:/var/lib/mysql
- ./conf/my.cnf:/etc/my.cnf
- ./log:/var/log/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "root", "-p${PERCONA_ROOT_PASSWORD}" ]
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
networks:
acepanel-network:
external: true