forked from EvolutionAPI/evolution-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yaml
More file actions
88 lines (82 loc) · 1.97 KB
/
docker-compose.postgres.yaml
File metadata and controls
88 lines (82 loc) · 1.97 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.8"
services:
api-postgres:
container_name: evolution_api_postgres
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
postgres-db:
condition: service_healthy
redis:
condition: service_started
ports:
- "127.0.0.1:8083:8080"
volumes:
- evolution_instances_postgres:/evolution/instances
networks:
- evolution-net
env_file:
- .env.postgres
environment:
- DATABASE_PROVIDER=postgresql
- DATABASE_CONNECTION_URI=postgresql://postgres:postgres@postgres-db:5432/evolution_db?schema=evolution_api
- CACHE_REDIS_URI=redis://redis:6379/6
expose:
- "8080"
frontend:
container_name: evolution_frontend_postgres
image: evoapicloud/evolution-manager:latest
restart: always
ports:
- "3001:80"
networks:
- evolution-net
redis:
container_name: evolution_redis_postgres
image: redis:latest
restart: always
command: >
redis-server --port 6379 --appendonly yes
volumes:
- evolution_redis_postgres:/data
networks:
evolution-net:
aliases:
- evolution-redis
expose:
- "6379"
postgres-db:
container_name: postgres_evolution_db
image: postgres:15
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DATABASE:-evolution}
POSTGRES_USER: ${POSTGRES_USERNAME:-evolution}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-evolution_password}
command:
- postgres
- -c
- max_connections=1000
- -c
- listen_addresses=*
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- evolution-net
expose:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U evolution"]
interval: 10s
timeout: 5s
retries: 5
volumes:
evolution_instances_postgres:
evolution_redis_postgres:
postgres_data:
networks:
evolution-net:
name: evolution-net
driver: bridge