steveternet/nuc/mariadb/docker-compose.yml

42 lines
604 B
YAML
Raw Normal View History

2024-07-27 01:49:38 +00:00
---
services:
mariadb:
image: mariadb
restart: always
container_name: mariadb
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
ports:
- 3306:3306/tcp
volumes:
- mariadb_data:/var/lib/mysql
networks:
- default
adminer:
image: adminer
restart: always
container_name: adminer
labels:
- "traefik.enable=true"
- "traefik.http.services.adminer.loadbalancer.server.port=8080"
networks:
- web
- default
networks:
web:
external: true
volumes:
mariadb_data:
external: true