mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
version: "3.7"
|
|
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: final
|
|
container_name: evolution_api
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
- postgres
|
|
ports:
|
|
- 8080:8080
|
|
volumes:
|
|
- evolution_instances:/evolution/instances
|
|
networks:
|
|
- Docker
|
|
expose:
|
|
- 8080
|
|
|
|
redis:
|
|
image: redis:latest
|
|
networks:
|
|
- Docker
|
|
container_name: redis
|
|
command: >
|
|
redis-server --port 6379 --appendonly yes
|
|
volumes:
|
|
- evolution_redis:/data
|
|
ports:
|
|
- 6379:6379
|
|
|
|
postgres:
|
|
container_name: postgres
|
|
image: postgres:15
|
|
networks:
|
|
- Docker
|
|
#command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
|
|
restart: always
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
- POSTGRES_USER=evolution
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=evolution
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
expose:
|
|
- 5432
|
|
|
|
volumes:
|
|
evolution_instances:
|
|
evolution_redis:
|
|
postgres_data:
|
|
|
|
|
|
networks:
|
|
Docker: ## Nome da rede interna
|
|
external: true
|
|
name: Docker ## Nome da rede interna
|