From 899bcd81a4a6504272817a33a1c5243837382f76 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Mon, 20 Jan 2025 12:47:34 -0300 Subject: [PATCH] feat(docker): add production Docker Compose configuration for API and services This commit introduces a new `docker-compose.prod.yaml` file that defines the services required for the production environment, including the API, Redis, and PostgreSQL. This setup allows for easier deployment and management of the application in a containerized environment. --- docker-compose.prod.yaml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docker-compose.prod.yaml diff --git a/docker-compose.prod.yaml b/docker-compose.prod.yaml new file mode 100644 index 00000000..58b4599d --- /dev/null +++ b/docker-compose.prod.yaml @@ -0,0 +1,42 @@ +services: + api: + container_name: evolution_api + image: atendai/evolution-api:homolog + build: . + restart: always + depends_on: + - redis + - postgres + ports: + - 8080:8080 + volumes: + - evolution_instances:/evolution/instances + networks: + - evolution-net + env_file: + - .env + expose: + - 8080 + + redis: + image: redis:latest + networks: + - evolution-net + container_name: redis + command: > + redis-server --port 6379 --appendonly yes + volumes: + - evolution_redis:/data + ports: + - 6380:6379 + +volumes: + evolution_instances: + evolution_redis: + postgres_data: + + +networks: + evolution-net: + name: evolution-net + driver: bridge