Update docker-compose.yaml

This commit is contained in:
codingbox2022 2025-06-28 22:02:34 -05:00 committed by GitHub
parent b35b33ca50
commit f7e7a6c901
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,5 @@
version: "3.8"
services: services:
api: api:
container_name: evolution_api container_name: evolution_api
@ -7,37 +9,44 @@ services:
- redis - redis
- postgres - postgres
ports: ports:
- 8080:8080 - "8080:8080"
volumes: volumes:
- evolution_instances:/evolution/instances - evolution_instances:/evolution/instances
networks: networks:
- evolution-net - evolution-net
- dokploy-network
env_file: env_file:
- .env - .env
expose: expose:
- 8080 - "8080"
redis: redis:
image: redis:latest image: redis:latest
networks:
- evolution-net
container_name: redis 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"
expose:
- "6379"
networks:
- evolution-net
- dokploy-network
postgres: postgres:
container_name: postgres container_name: postgres
image: postgres:15 image: postgres:15
networks: command:
- evolution-net - postgres
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"] - -c
- max_connections=1000
- -c
- listen_addresses=*
restart: always restart: always
ports: ports:
- 5432:5432 - "5432:5432"
environment: environment:
- POSTGRES_DB=${POSTGRES_DATABASE} - POSTGRES_DB=${POSTGRES_DATABASE}
- POSTGRES_USER=${POSTGRES_USERNAME} - POSTGRES_USER=${POSTGRES_USERNAME}
@ -46,15 +55,19 @@ services:
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
expose: expose:
- 5432 - "5432"
networks:
- evolution-net
- dokploy-network
volumes: volumes:
evolution_instances: evolution_instances:
evolution_redis: evolution_redis:
postgres_data: postgres_data:
networks: networks:
evolution-net: evolution-net:
name: evolution-net name: evolution-net
driver: bridge driver: bridge
dokploy-network:
external: true