c5bfda5918
Remove external network and Swarm deploy labels; use expose + service-level Traefik labels like the existing whatsapp-api container. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
778 B
YAML
25 lines
778 B
YAML
services:
|
|
whatsapp-api-oficial:
|
|
build: .
|
|
image: whatsapp-api-oficial:latest
|
|
container_name: whatsapp-api-oficial
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- api_zdg_oficial_data:/usr/src/app/data
|
|
expose:
|
|
- "3001"
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.whatsapp-api-oficial.rule=Host(`apimsgoficial.neuralsys.com.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
|
|
|
|
volumes:
|
|
api_zdg_oficial_data:
|
|
external: true
|
|
name: api_zdg_oficial_data
|