1
0

feat:同步上游MySQL

This commit is contained in:
okxlin
2024-12-15 17:53:53 +08:00
parent 12b91d61e3
commit 7813ddf875
9 changed files with 131 additions and 15 deletions

View File

@@ -0,0 +1,24 @@
services:
mysql:
image: mysql:8.0.40
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:
- --default-authentication-plugin=mysql_native_password
networks:
1panel-network:
external: true