mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 18:38:39 -06:00
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:
parent
908d5be53f
commit
899bcd81a4
42
docker-compose.prod.yaml
Normal file
42
docker-compose.prod.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user