forked from asternic/wuzapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 973 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 973 Bytes
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
48
49
services:
wuzapi-server:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
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
depends_on:
db:
condition: service_healthy
networks:
- wuzapi-network
restart: on-failure
db:
image: postgres:16
environment:
POSTGRES_USER: wuzapi
POSTGRES_PASSWORD: wuzapi
POSTGRES_DB: wuzapi
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
networks:
- wuzapi-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wuzapi"]
interval: 5s
timeout: 5s
retries: 5
restart: always
networks:
wuzapi-network:
driver: bridge
volumes:
db_data: