diff --git a/docker-compose.yml b/docker-compose.yml index 18a342e..9015141 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,11 +15,19 @@ services: - whatsapp-sys-net labels: - traefik.enable=true - - traefik.http.routers.whatsapp-api-oficial.rule=Host(`apimsgoficial.neuralsys.com.br`) + - traefik.http.routers.whatsapp-api-oficial.rule=Host(`apimsgoficial.neuralsys.com.br`) || Host(`whatsapi.nexcore.api.br`) - traefik.http.routers.whatsapp-api-oficial.entrypoints=websecure - traefik.http.routers.whatsapp-api-oficial.tls=true - traefik.http.routers.whatsapp-api-oficial.tls.certresolver=letsencrypt - traefik.http.services.whatsapp-api-oficial.loadbalancer.server.port=3001 + - traefik.http.routers.whatsapp-api-oficial-path.rule=Host(`nexcore.api.br`) && PathRegexp(`^/whatsapi(/|$$)`) + - traefik.http.routers.whatsapp-api-oficial-path.priority=150 + - traefik.http.routers.whatsapp-api-oficial-path.entrypoints=websecure + - traefik.http.routers.whatsapp-api-oficial-path.tls=true + - traefik.http.routers.whatsapp-api-oficial-path.tls.certresolver=letsencrypt + - traefik.http.middlewares.whatsapp-api-oficial-strip.stripprefix.prefixes=/whatsapi + - traefik.http.routers.whatsapp-api-oficial-path.middlewares=whatsapp-api-oficial-strip + - traefik.http.routers.whatsapp-api-oficial-path.service=whatsapp-api-oficial volumes: api_zdg_oficial_data: