appstore-1panel/apps/mariadb/11.3.2/docker-compose.yml

19 lines
427 B
YAML
Raw Normal View History

services:
mariadb:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
image: mariadb:11.3.2
ports:
- ${PANEL_APP_PORT_HTTP}:3306
volumes:
- ./db/data:/var/lib/mysql
- ./conf/my.cnf:/etc/mysql/my.cnf
environment:
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true