appstore-1panel/apps/mysql/versions/8.0.30/docker-compose.yml
2023-02-07 15:21:24 +08:00

27 lines
520 B
YAML

version: '3'
services:
mysql:
image: mysql:8.0.30
container_name: ${CONTAINER_NAME}
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
networks:
- 1panel
ports:
- ${PANEL_APP_PORT_HTTP}:3306
volumes:
- ./data/:/var/lib/mysql
- ./conf/my.cnf:/etc/my.cnf
- ./log:/var/log/mysql
labels:
createdBy: "Apps"
command:
- --default-authentication-plugin=mysql_native_password
networks:
1panel:
external: true