mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-17 04:32:53 -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
|
# Client name for the database connection
|
||||||
# It is used to separate an API installation from another that uses the same database.
|
# It is used to separate an API installation from another that uses the same database.
|
||||||
DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange
|
DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange
|
||||||
|
DATABASE_PORT=5432
|
||||||
|
|
||||||
# Choose the data you want to save in the application's database
|
# Choose the data you want to save in the application's database
|
||||||
DATABASE_SAVE_DATA_INSTANCE=true
|
DATABASE_SAVE_DATA_INSTANCE=true
|
||||||
@ -224,6 +225,8 @@ CACHE_REDIS_PREFIX_KEY=evolution
|
|||||||
CACHE_REDIS_SAVE_INSTANCES=false
|
CACHE_REDIS_SAVE_INSTANCES=false
|
||||||
# Local Cache enabled
|
# Local Cache enabled
|
||||||
CACHE_LOCAL_ENABLED=false
|
CACHE_LOCAL_ENABLED=false
|
||||||
|
#Redis Port
|
||||||
|
REDIS_PORT=6379
|
||||||
|
|
||||||
# Amazon S3 - Environment variables
|
# Amazon S3 - Environment variables
|
||||||
S3_ENABLED=false
|
S3_ENABLED=false
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
container_name: evolution_api
|
container_name: evolution_api
|
||||||
image: evoapicloud/evolution-api:latest
|
build: .
|
||||||
|
#image: evoapicloud/evolution-api:latest
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- postgres
|
- postgres
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- ${SERVER_PORT}:8080
|
||||||
volumes:
|
volumes:
|
||||||
- evolution_instances:/evolution/instances
|
- evolution_instances:/evolution/instances
|
||||||
networks:
|
networks:
|
||||||
@ -15,7 +16,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
expose:
|
expose:
|
||||||
- 8080
|
- ${SERVER_PORT}
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
@ -27,7 +28,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- evolution_redis:/data
|
- evolution_redis:/data
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- ${REDIS_PORT}:6379
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
container_name: postgres
|
container_name: postgres
|
||||||
@ -37,7 +38,7 @@ services:
|
|||||||
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
|
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- ${DATABASE_PORT}:5432
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=user
|
- POSTGRES_USER=user
|
||||||
- POSTGRES_PASSWORD=pass
|
- POSTGRES_PASSWORD=pass
|
||||||
@ -46,7 +47,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
expose:
|
expose:
|
||||||
- 5432
|
- ${DATABASE_PORT}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
evolution_instances:
|
evolution_instances:
|
||||||
|
Loading…
Reference in New Issue
Block a user