From ab1d0e8dc4e8b84c909d8f5fb05b520b23f1e405 Mon Sep 17 00:00:00 2001 From: pedro-php Date: Fri, 11 Apr 2025 10:59:18 -0300 Subject: [PATCH] evolution api --- .env.example | 3 +++ docker-compose.yaml | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 1a320aa1..f240b43d 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml index 33918c38..026562da 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: