mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 18:38:39 -06:00
docker
This commit is contained in:
parent
cd673107b8
commit
2f0e4ee1e5
@ -1,57 +1,61 @@
|
||||
services:
|
||||
api:
|
||||
container_name: evolution_api
|
||||
image: atendai/evolution-api:homolog
|
||||
evolution-api:
|
||||
container_name: evolution-api
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
depends_on:
|
||||
- redis
|
||||
- evolution-redis
|
||||
- postgres
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- evolution_instances:/evolution/instances
|
||||
- evolution-instances:/evolution/instances
|
||||
networks:
|
||||
- evolution-net
|
||||
- chatwoot-evolution-network
|
||||
env_file:
|
||||
- .env
|
||||
expose:
|
||||
- 8080
|
||||
|
||||
redis:
|
||||
evolution-redis:
|
||||
image: redis:latest
|
||||
container_name: evolution-redis
|
||||
restart: always
|
||||
networks:
|
||||
- evolution-net
|
||||
container_name: redis
|
||||
- chatwoot-evolution-network
|
||||
command: >
|
||||
redis-server --port 6379 --appendonly yes
|
||||
volumes:
|
||||
- evolution_redis:/data
|
||||
- evolution-redis:/data
|
||||
ports:
|
||||
- 6379:6379
|
||||
|
||||
postgres:
|
||||
container_name: postgres
|
||||
evolution-postgres:
|
||||
container_name: evolution-postgres
|
||||
image: postgres:15
|
||||
networks:
|
||||
- evolution-net
|
||||
command: ["postgres", "-c", "max_connections=1000"]
|
||||
- chatwoot-evolution-network
|
||||
command: [ "postgres", "-c", "max_connections=1000" ]
|
||||
restart: always
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=PASSWORD
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- evolution-postgres:/var/lib/postgresql/data
|
||||
expose:
|
||||
- 5432
|
||||
|
||||
volumes:
|
||||
evolution_instances:
|
||||
evolution_redis:
|
||||
postgres_data:
|
||||
evolution-instances:
|
||||
evolution-redis:
|
||||
evolution-postgres:
|
||||
|
||||
|
||||
networks:
|
||||
evolution-net:
|
||||
name: evolution-net
|
||||
driver: bridge
|
||||
chatwoot-evolution-network:
|
||||
external: true
|
||||
|
Loading…
Reference in New Issue
Block a user