mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-12-04 07:52:21 +08:00
25 lines
572 B
YAML
25 lines
572 B
YAML
|
services:
|
||
|
mysql:
|
||
|
image: mysql:8.4.2
|
||
|
container_name: ${CONTAINER_NAME}
|
||
|
restart: always
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
|
||
|
networks:
|
||
|
- 1panel-network
|
||
|
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
|
||
|
labels:
|
||
|
createdBy: "Apps"
|
||
|
command:
|
||
|
- --mysql-native-password=on
|
||
|
networks:
|
||
|
1panel-network:
|
||
|
external: true
|