mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-25 18:08:40 -06:00
Merging with main
This commit is contained in:
commit
0ef36ef4cf
@ -1,5 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
environment:
|
environment:
|
||||||
|
NODE_ENV: PROD
|
||||||
CHATFLUX_ENV: Production
|
CHATFLUX_ENV: Production
|
||||||
NEW_RELIC_APP_NAME: "Production Evolution API"
|
NEW_RELIC_APP_NAME: "Production Evolution API"
|
||||||
|
LOG_LEVEL: "DEBUG"
|
||||||
|
CACHE_REDIS_ENABLED: "true"
|
||||||
|
CACHE_LOCAL_ENABLED: "false"
|
||||||
|
WEBHOOK_EVENTS_ERRORS: "true"
|
||||||
|
WEBHOOK_EVENTS_ERRORS_WEBHOOK: ${WEBHOOK_EVENTS_ERRORS_WEBHOOK}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
environment:
|
environment:
|
||||||
|
NODE_ENV: PROD
|
||||||
CHATFLUX_ENV: Staging
|
CHATFLUX_ENV: Staging
|
||||||
NEW_RELIC_APP_NAME: "Staging Evolution API"
|
NEW_RELIC_APP_NAME: "Staging Evolution API"
|
||||||
|
LOG_LEVEL: "DEBUG"
|
||||||
|
CACHE_REDIS_ENABLED: "true"
|
||||||
|
CACHE_LOCAL_ENABLED: "false"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
container_name: evolution_api
|
container_name: evolution_api
|
||||||
image: atendai/evolution-api:v2.2.3
|
image: ghcr.io/ai-chat-os/evolution-api:v2.2.1-redis-on
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
@ -12,24 +12,31 @@ services:
|
|||||||
# 4- If didn't, CTRL+d to logout
|
# 4- If didn't, CTRL+d to logout
|
||||||
# 5- Login to the server
|
# 5- Login to the server
|
||||||
# 6- Run env |grep -i relic again;
|
# 6- Run env |grep -i relic again;
|
||||||
|
CACHE_REDIS_URI: redis://redis:6379/6
|
||||||
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
|
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
|
||||||
NEW_RELIC_NO_CONFIG_FILE: true
|
NEW_RELIC_NO_CONFIG_FILE: true
|
||||||
NEW_RELIC_DISTRIBUTED_TRACING_ENABLED: true
|
NEW_RELIC_DISTRIBUTED_TRACING_ENABLED: true
|
||||||
NEW_RELIC_LOG: stdout
|
NEW_RELIC_LOG: stdout
|
||||||
NODE_ENV: PROD
|
NODE_ENV: PROD
|
||||||
ports:
|
|
||||||
- 8080:8080
|
|
||||||
volumes:
|
volumes:
|
||||||
- evolution_instances:/evolution/instances
|
- evolution_instances:/evolution/instances
|
||||||
networks:
|
networks:
|
||||||
- evolution-net
|
- evolution-net
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
expose:
|
|
||||||
- 8080
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis:7.4.2-alpine
|
||||||
|
networks:
|
||||||
|
- evolution-net
|
||||||
|
container_name: redis
|
||||||
|
command: >
|
||||||
|
redis-server --port 6379 --appendonly yes
|
||||||
|
volumes:
|
||||||
|
- evolution_redis:/data
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
container_name: postgres
|
container_name: postgres
|
||||||
build:
|
build:
|
||||||
@ -46,16 +53,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis:7.4.2-alpine
|
|
||||||
networks:
|
|
||||||
- evolution-net
|
|
||||||
container_name: redis
|
|
||||||
command: >
|
|
||||||
redis-server --port 6379 --appendonly yes
|
|
||||||
volumes:
|
|
||||||
- evolution_redis:/data
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
evolution_instances:
|
evolution_instances:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
@ -2,7 +2,7 @@ exports.config = {
|
|||||||
app_name: [`${process.env.CHATFLUX_ENV} Evolution API`],
|
app_name: [`${process.env.CHATFLUX_ENV} Evolution API`],
|
||||||
license_key: process.env.NEW_RELIC_LICENSE_KEY,
|
license_key: process.env.NEW_RELIC_LICENSE_KEY,
|
||||||
logging: {
|
logging: {
|
||||||
level: 'trace'
|
level: process.env.LOG_LEVEL
|
||||||
},
|
},
|
||||||
allow_all_headers: true,
|
allow_all_headers: true,
|
||||||
attributes: {
|
attributes: {
|
||||||
|
Loading…
Reference in New Issue
Block a user