mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 12:12:55 -06:00
evolution api
This commit is contained in:
parent
312b289622
commit
ab1d0e8dc4
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user