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:
|
services:
|
||||||
api:
|
evolution-api:
|
||||||
container_name: evolution_api
|
container_name: evolution-api
|
||||||
image: atendai/evolution-api:homolog
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- evolution-redis
|
||||||
- postgres
|
- postgres
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
- evolution_instances:/evolution/instances
|
- evolution-instances:/evolution/instances
|
||||||
networks:
|
networks:
|
||||||
- evolution-net
|
- chatwoot-evolution-network
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
expose:
|
expose:
|
||||||
- 8080
|
- 8080
|
||||||
|
|
||||||
redis:
|
evolution-redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
|
container_name: evolution-redis
|
||||||
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- evolution-net
|
- chatwoot-evolution-network
|
||||||
container_name: redis
|
|
||||||
command: >
|
command: >
|
||||||
redis-server --port 6379 --appendonly yes
|
redis-server --port 6379 --appendonly yes
|
||||||
volumes:
|
volumes:
|
||||||
- evolution_redis:/data
|
- evolution-redis:/data
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
|
|
||||||
postgres:
|
evolution-postgres:
|
||||||
container_name: postgres
|
container_name: evolution-postgres
|
||||||
image: postgres:15
|
image: postgres:15
|
||||||
networks:
|
networks:
|
||||||
- evolution-net
|
- chatwoot-evolution-network
|
||||||
command: ["postgres", "-c", "max_connections=1000"]
|
command: [ "postgres", "-c", "max_connections=1000" ]
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=PASSWORD
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
- POSTGRES_DB=${POSTGRES_DB}
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- evolution-postgres:/var/lib/postgresql/data
|
||||||
expose:
|
expose:
|
||||||
- 5432
|
- 5432
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
evolution_instances:
|
evolution-instances:
|
||||||
evolution_redis:
|
evolution-redis:
|
||||||
postgres_data:
|
evolution-postgres:
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
evolution-net:
|
chatwoot-evolution-network:
|
||||||
name: evolution-net
|
external: true
|
||||||
driver: bridge
|
|
||||||
|
Loading…
Reference in New Issue
Block a user