23 lines
650 B
YAML
23 lines
650 B
YAML
services:
|
|
mariadb:
|
|
container_name: mariadb
|
|
image: mariadb:11.5.2-ubi9
|
|
restart: unless-stopped
|
|
networks:
|
|
- proxynet
|
|
env_file:
|
|
- /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env
|
|
environment:
|
|
MARIADB_USER: ${MARIADB_USER}
|
|
MARIADB_DATABASE: ${MARIADB_DB}
|
|
volumes:
|
|
- /data/appdata/mariadb:/var/lib/mysql
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.tcp.routers.mariadb.rule=HostSNI(`*`)"
|
|
- "traefik.tcp.services.mariadb.loadbalancer.server.port=3306"
|
|
- "traefik.tcp.routers.mariadb.entrypoints=mariadb"
|
|
user: "1001:1001"
|
|
networks:
|
|
proxynet:
|
|
external: true |