mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-21 03:27:22 -06:00
62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
services:
|
|
api:
|
|
container_name: evolution_api_${ENVIROMNENT}
|
|
build: .
|
|
#image: evoapicloud/evolution-api:latest
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
- postgres
|
|
ports:
|
|
- ${MIRROR_PORT}:8080
|
|
volumes:
|
|
- evolution_instances:/evolution/instances
|
|
networks:
|
|
- evolution-net
|
|
env_file:
|
|
- .env
|
|
expose:
|
|
- ${MIRROR_PORT}
|
|
|
|
redis:
|
|
image: redis:latest
|
|
networks:
|
|
- evolution-net
|
|
container_name: redis_${ENVIROMNENT}
|
|
command: >
|
|
redis-server --port 6379 --appendonly yes
|
|
volumes:
|
|
- evolution_redis:/data
|
|
ports:
|
|
- ${REDIS_PORT}:6379
|
|
|
|
postgres:
|
|
container_name: postgres_${ENVIROMNENT}
|
|
image: postgres:15
|
|
networks:
|
|
- evolution-net
|
|
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
|
|
restart: always
|
|
ports:
|
|
- ${DATABASE_PORT}:5432
|
|
environment:
|
|
- POSTGRES_USER=user
|
|
- POSTGRES_PASSWORD=pass
|
|
- POSTGRES_DB=evolution
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
expose:
|
|
- ${DATABASE_PORT}
|
|
|
|
volumes:
|
|
evolution_instances:
|
|
evolution_redis:
|
|
postgres_data:
|
|
|
|
|
|
networks:
|
|
evolution-net:
|
|
name: evolution-net
|
|
driver: bridge
|