mirror of
https://github.com/acepanel/templates.git
synced 2026-02-04 02:07:12 +08:00
29 lines
720 B
YAML
29 lines
720 B
YAML
services:
|
|
percona:
|
|
image: percona:8.4
|
|
restart: unless-stopped
|
|
environment:
|
|
- INIT_ROCKSDB=1
|
|
- PERCONA_TELEMETRY_DISABLE=1
|
|
- MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD}
|
|
ports:
|
|
- ${PERCONA_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
|
|
|
|
networks:
|
|
acepanel-network:
|
|
external: true
|