From fcea7b4a317e868ddcc3daed93269df45cbf5249 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Wed, 31 Jan 2024 04:58:34 +0100 Subject: [PATCH] Add Traefik labels to docker compose --- docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1a09fbb..be99ee1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + - ${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" \ No newline at end of file