services: mariadb: container_name: mariadb image: mariadb:lts-ubi9 restart: always 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