version: '3.8' services: api_zdg_oficial: image: chrishubert/whatsapp-oficial-api:latest build: context: . dockerfile: Dockerfile networks: - comunidadezdg volumes: - api_zdg_oficial_data:/usr/src/app/data environment: - PORT=3001 - API_KEY=${API_KEY} - BASE_WEBHOOK_URL=${BASE_WEBHOOK_URL} - META_WEBHOOK_VERIFY_TOKEN=${META_WEBHOOK_VERIFY_TOKEN} - ENABLE_SWAGGER_ENDPOINT=TRUE - DB_PATH=/usr/src/app/data/accounts.db deploy: mode: replicated replicas: 1 placement: constraints: - node.role == manager resources: limits: cpus: "0.5" memory: 256M labels: - traefik.enable=true - traefik.http.routers.api_zdg_oficial.rule=Host(`apimsgoficial.neuralsys.com.br`) - traefik.http.routers.api_zdg_oficial.entrypoints=websecure - traefik.http.routers.api_zdg_oficial.tls.certresolver=letsencryptresolver - traefik.http.routers.api_zdg_oficial.priority=1 - traefik.http.routers.api_zdg_oficial.service=api_zdg_oficial - traefik.http.services.api_zdg_oficial.loadbalancer.server.port=3001 - traefik.http.services.api_zdg_oficial.loadbalancer.passHostHeader=true volumes: api_zdg_oficial_data: external: true name: api_zdg_oficial_data networks: comunidadezdg: name: comunidadezdg external: true