2022-09-22 16:16:04 +08:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mysql5.7:
|
|
|
|
image: mysql:5.7.39
|
2022-09-26 16:32:40 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
2022-09-22 16:16:04 +08:00
|
|
|
restart: always
|
|
|
|
environment:
|
2022-10-09 23:35:24 +08:00
|
|
|
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
|
2022-10-07 15:49:39 +08:00
|
|
|
networks:
|
|
|
|
- 1panel
|
2022-09-22 16:16:04 +08:00
|
|
|
ports:
|
2022-10-10 22:56:42 +08:00
|
|
|
- ${PANEL_APP_PORT_HTTP}:3306
|
2022-09-22 16:16:04 +08:00
|
|
|
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-22 16:16:04 +08:00
|
|
|
command:
|
|
|
|
--character-set-server=utf8mb4
|
|
|
|
--collation-server=utf8mb4_general_ci
|
|
|
|
--explicit_defaults_for_timestamp=true
|
2022-10-17 16:32:31 +08:00
|
|
|
--lower_case_table_names=1
|
2022-12-04 15:59:34 +08:00
|
|
|
labels:
|
2022-12-19 12:49:19 +08:00
|
|
|
createdBy: "Apps"
|
2022-10-17 16:32:31 +08:00
|
|
|
networks:
|
|
|
|
1panel:
|
|
|
|
external: true
|