Add Traefik labels to docker compose

This commit is contained in:
Marco Realacci 2024-01-31 04:58:34 +01:00
parent 4d56d71aa2
commit fcea7b4a31

View file

@ -19,5 +19,12 @@ services:
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
# User id of the administrator user (will receive logs for errors)
- TELEGRAM_ADMIN_ID=${TELEGRAM_ADMIN_ID}
- WEB_BASE_URL=https://so-un-bot.srv.mrlc.cc
volumes:
- ${ACL_DIR}:/acl
- ${ACL_DIR}:/acl
labels:
- "traefik.enable=true"
- "traefik.http.routers.so-un-bot.entrypoints=web, websecure"
- "traefik.http.routers.so-un-bot.rule=Host(`so-un-bot.srv.mrlc.cc`)"
- "traefik.http.routers.so-un-bot.tls=true"
- "traefik.http.routers.so-un-bot.tls.certresolver=production"