forked from asternic/wuzapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-swarm.yaml
More file actions
47 lines (45 loc) · 1.32 KB
/
docker-compose-swarm.yaml
File metadata and controls
47 lines (45 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.7'
services:
wuzapi-server:
image: setupautomatizado/wuzapi-server:latest
networks:
- network_public
environment:
- WUZAPI_ADMIN_TOKEN=H4Zbhw72PBKdTIgS
- DB_USER=wuzapi
- DB_PASSWORD=wuzapi
- DB_NAME=wuzapi
- DB_HOST=db
- DB_PORT=5432
- TZ=America/Sao_Paulo
- WEBHOOK_FORMAT=json
- SESSION_DEVICE_NAME=WuzAPI
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
resources:
limits:
cpus: "1"
memory: 512MB
labels:
- traefik.enable=true
- traefik.http.routers.wuzapi-server.rule=Host(`api.wuzapi.app`)
- traefik.http.routers.wuzapi-server.entrypoints=websecure
- traefik.http.routers.wuzapi-server.priority=1
- traefik.http.routers.wuzapi-server.tls.certresolver=letsencryptresolver
- traefik.http.routers.wuzapi-server.service=wuzapi-server
- traefik.http.services.wuzapi-server.loadbalancer.server.port=8080
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
# interval: 10s
# timeout: 5s
# retries: 3
# start_period: 10s
networks:
network_public:
name: network_public
external: true