appstore-1panel/apps/mysql/8.0.38/docker-compose.yml

25 lines
600 B
YAML
Raw Normal View History

2023-02-06 15:53:30 +08:00
services:
2023-02-07 15:21:24 +08:00
mysql:
2024-07-08 09:44:47 +08:00
image: mysql:8.0.38
2023-02-06 15:53:30 +08:00
container_name: ${CONTAINER_NAME}
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
networks:
2023-02-13 15:30:25 +08:00
- 1panel-network
2023-02-06 15:53:30 +08:00
ports:
- ${PANEL_APP_PORT_HTTP}: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
2023-02-06 15:53:30 +08:00
labels:
createdBy: "Apps"
2023-02-07 15:21:24 +08:00
command:
- --default-authentication-plugin=mysql_native_password
2023-02-06 15:53:30 +08:00
networks:
2023-02-13 15:30:25 +08:00
1panel-network:
2023-02-07 15:21:24 +08:00
external: true