mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-12 03:19:37 -06:00
Merge pull request #1889 from codingbox2022/main
Some checks failed
Build Docker image / Build and Deploy (push) Has been cancelled
Some checks failed
Build Docker image / Build and Deploy (push) Has been cancelled
update version
This commit is contained in:
commit
a91a4ad19c
@ -1,83 +1,75 @@
|
|||||||
services:
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
api:
|
api:
|
||||||
container_name: evolution_api
|
container_name: evolution_api
|
||||||
image: evoapicloud/evolution-api:latest
|
image: evoapicloud/evolution-api:latest
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- postgres
|
- evolution-postgres
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- "127.0.0.1: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:
|
||||||
|
container_name: evolution_redis
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
networks:
|
restart: always
|
||||||
- evolution-net
|
|
||||||
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:
|
|
||||||
- 6379:6379
|
|
||||||
|
|
||||||
postgres:
|
|
||||||
container_name: postgres
|
|
||||||
image: postgres:15
|
|
||||||
networks:
|
networks:
|
||||||
- evolution-net
|
evolution-net:
|
||||||
command: [
|
aliases:
|
||||||
"postgres",
|
- evolution-redis
|
||||||
"-c", "max_connections=200",
|
dokploy-network:
|
||||||
"-c", "listen_addresses=*",
|
aliases:
|
||||||
"-c", "shared_buffers=256MB",
|
- evolution-redis
|
||||||
"-c", "effective_cache_size=1GB",
|
expose:
|
||||||
"-c", "work_mem=4MB"
|
- "6379"
|
||||||
]
|
|
||||||
|
evolution-postgres:
|
||||||
|
container_name: evolution_postgres
|
||||||
|
image: postgres:15
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
env_file:
|
||||||
- 5432:5432
|
- .env
|
||||||
|
command:
|
||||||
|
- postgres
|
||||||
|
- -c
|
||||||
|
- max_connections=1000
|
||||||
|
- -c
|
||||||
|
- listen_addresses=*
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=user
|
- POSTGRES_DB=${POSTGRES_DATABASE}
|
||||||
- POSTGRES_PASSWORD=pass
|
- POSTGRES_USER=${POSTGRES_USERNAME}
|
||||||
- POSTGRES_DB=evolution_db
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
# pgbouncer:
|
- evolution-net
|
||||||
# image: edoburu/pgbouncer:latest
|
- dokploy-network
|
||||||
# environment:
|
expose:
|
||||||
# DB_HOST: postgres
|
- "5432"
|
||||||
# DB_USER: user
|
|
||||||
# DB_PASSWORD: pass
|
|
||||||
# POOL_MODE: transaction
|
|
||||||
# AUTH_TYPE: trust
|
|
||||||
# MAX_CLIENT_CONN: 1000
|
|
||||||
# DEFAULT_POOL_SIZE: 25
|
|
||||||
# depends_on:
|
|
||||||
# - postgres
|
|
||||||
# ports:
|
|
||||||
# - "6543:5432"
|
|
||||||
# networks:
|
|
||||||
# - evolution-net
|
|
||||||
|
|
||||||
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
|
||||||
Loading…
Reference in New Issue
Block a user