refactor(service): improve evolution-api

- update evolution-api
- remove unused code
- format compose file
This commit is contained in:
peaklabs-dev 2026-01-04 21:54:50 +01:00
parent c5ba28b686
commit db2b8125df
No known key found for this signature in database

View file

@ -5,19 +5,12 @@
# logo: svgs/evolution-api.svg # logo: svgs/evolution-api.svg
# port: 8080 # port: 8080
version: '3.8'
services: services:
api: api:
image: 'evoapicloud/evolution-api:v2.3.4' image: evoapicloud/evolution-api:v2.3.7
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment: environment:
- SERVICE_URL_EVO_8080 - SERVICE_URL_EVO_8080
- SERVER_URL=${SERVICE_URL_EVO} - SERVER_URL=${SERVICE_URL_EVO}
- DB_TYPE=${DB_TYPE:-postgresdb} - DB_TYPE=${DB_TYPE:-postgresdb}
- 'DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-postgres}' - 'DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-postgres}'
- DB_POSTGRESDB_HOST=${DB_POSTGRESDB_HOST:-postgres} - DB_POSTGRESDB_HOST=${DB_POSTGRESDB_HOST:-postgres}
@ -141,7 +134,6 @@ services:
expose: expose:
- "8080" - "8080"
healthcheck: healthcheck:
# Internal healthcheck: success if "/" returns 2xx (sin curl/wget)
test: test:
- CMD-SHELL - CMD-SHELL
- > - >
@ -152,10 +144,15 @@ services:
timeout: 5s timeout: 5s
retries: 30 retries: 30
start_period: 60s start_period: 60s
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
redis: redis:
image: 'redis:7-alpine' image: redis:7-alpine
command: "redis-server --port 6379 --appendonly yes\n" command: redis-server --port 6379 --appendonly yes
volumes: volumes:
- 'evolution_redis:/data' - 'evolution_redis:/data'
healthcheck: healthcheck:
@ -166,7 +163,7 @@ services:
start_period: 5s start_period: 5s
postgres: postgres:
image: 'postgres:16-alpine' image: postgres:16-alpine
command: command:
- postgres - postgres
- '-c' - '-c'
@ -186,8 +183,3 @@ services:
timeout: 3s timeout: 3s
retries: 20 retries: 20
start_period: 10s start_period: 10s
volumes:
evolution_instances:
evolution_redis:
postgres_data: