1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 08:49:16 +08:00
1Panel/apps/mysql/8.0.30/docker-compose.yml

24 lines
605 B
YAML
Raw Normal View History

2022-09-26 19:08:12 +08:00
version: '3'
services:
mysql8.0:
image: mysql:8.0.30
container_name: ${CONTAINER_NAME}
restart: always
environment:
TZ: ${TZ}
MYSQL_DATABASE: ${DATABASE}
MYSQL_USER: ${USER}
MYSQL_PASSWORD: ${PASSWORD}
MYSQL_ROOT_PASSWORD: ${ROOT_PASSWORD}
ports:
- ${PORT}:3306
volumes:
- ./data/:/var/lib/mysql
- ./conf/my.cnf:/etc/mysql/my.cnf
2022-09-27 22:53:24 +08:00
- ./log:/var/log/mysql
2022-09-26 19:08:12 +08:00
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1