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
renovate[bot] 44de0cce2b chore(deps): update docker images (minor/patch/digest) (#9)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 05:27:30 +00:00

27 lines
647 B
YAML

services:
mysql:
image: mysql:9.6.0
restart: always
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