2023-02-27 18:58:42 +08:00
|
|
|
services:
|
|
|
|
mariadb:
|
|
|
|
container_name: ${CONTAINER_NAME}
|
2023-03-11 12:27:32 +08:00
|
|
|
restart: always
|
2023-02-27 18:58:42 +08:00
|
|
|
networks:
|
|
|
|
- 1panel-network
|
2024-02-20 15:02:28 +08:00
|
|
|
image: "mariadb:10.11.7"
|
2023-02-27 18:58:42 +08:00
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:3306
|
|
|
|
volumes:
|
|
|
|
- ./db/data:/var/lib/mysql
|
2023-09-04 15:51:22 +08:00
|
|
|
- ./conf/my.cnf:/etc/mysql/my.cnf
|
2023-02-27 18:58:42 +08:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
|
2023-03-30 14:26:29 +08:00
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
2023-02-27 18:58:42 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|