2024-08-14 10:48:16 +05:00
|
|
|
services:
|
|
|
|
mariadb:
|
|
|
|
container_name: mariadb
|
2024-09-21 04:01:05 +05:00
|
|
|
image: mariadb:11.5.2-ubi9
|
|
|
|
restart: unless-stopped
|
2024-08-14 10:48:16 +05:00
|
|
|
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"
|
2024-08-14 13:45:03 +05:00
|
|
|
user: "1001:1001"
|
2024-08-14 10:48:16 +05:00
|
|
|
networks:
|
|
|
|
proxynet:
|
|
|
|
external: true
|