From 133eddd742469199d46f822393ad31be82baf85e Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Tue, 29 Oct 2024 18:22:45 -0300 Subject: [PATCH] docker-compose --- docker-compose.yaml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 21dcf5d0..b286919c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,8 +1,11 @@ services: api: container_name: evolution_api - image: atendai/evolution-api:v2.0.9-rc + image: atendai/evolution-api:homolog restart: always + depends_on: + - redis + - postgres ports: - 8080:8080 volumes: @@ -14,8 +17,38 @@ services: expose: - 8080 + redis: + image: redis:latest + networks: + - evolution-net + container_name: redis + command: > + redis-server --port 6379 --appendonly yes + volumes: + - evolution_redis:/data + ports: + - 6379:6379 + + postgres: + container_name: postgres + image: postgres:15 + networks: + - evolution-net + command: ["postgres", "-c", "max_connections=1000"] + restart: always + ports: + - 5432:5432 + environment: + - POSTGRES_PASSWORD=PASSWORD + volumes: + - postgres_data:/var/lib/postgresql/data + expose: + - 5432 + volumes: evolution_instances: + evolution_redis: + postgres_data: networks: