Skip to content

Commit 133eddd

Browse files
committed
docker-compose
1 parent c55312d commit 133eddd

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

docker-compose.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
services:
22
api:
33
container_name: evolution_api
4-
image: atendai/evolution-api:v2.0.9-rc
4+
image: atendai/evolution-api:homolog
55
restart: always
6+
depends_on:
7+
- redis
8+
- postgres
69
ports:
710
- 8080:8080
811
volumes:
@@ -14,8 +17,38 @@ services:
1417
expose:
1518
- 8080
1619

20+
redis:
21+
image: redis:latest
22+
networks:
23+
- evolution-net
24+
container_name: redis
25+
command: >
26+
redis-server --port 6379 --appendonly yes
27+
volumes:
28+
- evolution_redis:/data
29+
ports:
30+
- 6379:6379
31+
32+
postgres:
33+
container_name: postgres
34+
image: postgres:15
35+
networks:
36+
- evolution-net
37+
command: ["postgres", "-c", "max_connections=1000"]
38+
restart: always
39+
ports:
40+
- 5432:5432
41+
environment:
42+
- POSTGRES_PASSWORD=PASSWORD
43+
volumes:
44+
- postgres_data:/var/lib/postgresql/data
45+
expose:
46+
- 5432
47+
1748
volumes:
1849
evolution_instances:
50+
evolution_redis:
51+
postgres_data:
1952

2053

2154
networks:

0 commit comments

Comments
 (0)