From 33f7a84a3ffa9eb0a29116c6c1fff8b938f9d2a7 Mon Sep 17 00:00:00 2001 From: Gabriel Pastori <58153955+gabrielpastori1@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:12:44 -0300 Subject: [PATCH] add traefik label to docker composer --- docker-compose.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2ea1637..3694d2e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,19 @@ +# Use this compose with traefik proxy manager version: '3' services: evolution-manager: image: "gabrielpastori1/evolution-manager:latest" ports: - - "9615:9615" \ No newline at end of file + - "9615:9615" + labels: + - traefik.enable=true + - traefik.http.routers.evolution-manager.service=evolution-manager + - traefik.http.services.evolution-manager.loadbalancer.server.port=9615 + - traefik.http.routers.evolution-manager.rule=Host(`manager.yourdomain.com`) #Replace this with the subdomain that you wishes, dont forget to point the domain to your VPS ip address + - traefik.http.routers.evolution-manager.entrypoints=https # Some people name the entrypoint as "websecure" look at your original traefik compose file to find the correct entrypoint name + - traefik.http.routers.evolution-manager.tls.certresolver=letsencrypt # Some people name the certResolver as "le" look at your original traefik compose file to find the correct certResolver name + network: + - traefik_public_example_network +networks: + traefik_public_example_network: + external: true