-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (55 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
65 lines (55 loc) · 1.23 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.8'
services:
evolution-router:
build: .
container_name: evolution-router
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Server
SERVER_PORT: 3000
GIN_MODE: release
# Database
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: router
POSTGRES_PASSWORD: router123
POSTGRES_DB: evolution_router
POSTGRES_SSLMODE: disable
# Security
API_KEY: change-this-to-a-secure-key
# Retry
MAX_RETRY_ATTEMPTS: 3
RETRY_DELAY_SECONDS: 5
RETRY_BACKOFF_MULTIPLIER: 2
# Logs
LOG_LEVEL: info
LOG_RETENTION_DAYS: 30
# Worker
WORKER_POOL_SIZE: 10
WEBHOOK_TIMEOUT_SECONDS: 30
depends_on:
- postgres
networks:
- router_network
postgres:
image: postgres:15-alpine
container_name: router-postgres
restart: unless-stopped
environment:
POSTGRES_USER: router
POSTGRES_PASSWORD: router123
POSTGRES_DB: evolution_router
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- router_network
volumes:
postgres_data:
driver: local
networks:
router_network:
driver: bridge