evolution api

This commit is contained in:
pedro-php 2025-04-11 10:59:18 -03:00
parent 312b289622
commit ab1d0e8dc4
2 changed files with 10 additions and 6 deletions

View File

@ -30,6 +30,7 @@ DATABASE_CONNECTION_URI='postgresql://user:pass@postgres:5432/evolution?schema=p
# Client name for the database connection
# It is used to separate an API installation from another that uses the same database.
DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange
DATABASE_PORT=5432
# Choose the data you want to save in the application's database
DATABASE_SAVE_DATA_INSTANCE=true
@ -224,6 +225,8 @@ CACHE_REDIS_PREFIX_KEY=evolution
CACHE_REDIS_SAVE_INSTANCES=false
# Local Cache enabled
CACHE_LOCAL_ENABLED=false
#Redis Port
REDIS_PORT=6379
# Amazon S3 - Environment variables
S3_ENABLED=false

View File

@ -1,13 +1,14 @@
services:
api:
container_name: evolution_api
image: evoapicloud/evolution-api:latest
build: .
#image: evoapicloud/evolution-api:latest
restart: always
depends_on:
- redis
- postgres
ports:
- 8080:8080
- ${SERVER_PORT}:8080
volumes:
- evolution_instances:/evolution/instances
networks:
@ -15,7 +16,7 @@ services:
env_file:
- .env
expose:
- 8080
- ${SERVER_PORT}
redis:
image: redis:latest
@ -27,7 +28,7 @@ services:
volumes:
- evolution_redis:/data
ports:
- 6379:6379
- ${REDIS_PORT}:6379
postgres:
container_name: postgres
@ -37,7 +38,7 @@ services:
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
restart: always
ports:
- 5432:5432
- ${DATABASE_PORT}:5432
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
@ -46,7 +47,7 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
expose:
- 5432
- ${DATABASE_PORT}
volumes:
evolution_instances: