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.
This commit is contained in:
Pedro Henrique 2025-01-20 12:47:34 -03:00
parent 908d5be53f
commit 899bcd81a4

42
docker-compose.prod.yaml Normal file
View File

@ -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