Files
templates/blueprints/evolutiongo/docker-compose.yml
Mauricio Siu 5a6d31c147 fix: make Evolution CRM and Evolution GO templates respond on their domains
evolutioncrm:
- Point the evo-crm-frontend domain at port 80 instead of 5173: the
  community frontend image serves the built app via nginx on port 80
  (5173 is the vite dev port), so the domain returned 502.
- Set EVOLUTION_API_ONLY_SERVER=true on evo-crm: the community image
  ships without the Rails dashboard views (the UI lives in the separate
  evo-crm-frontend service), so the default root route (dashboard#index)
  can never render and returned 406 for every request. With the flag the
  root serves the API status JSON; all /api routes are unaffected.
- Drop the evolution-go-* volumes that were left over from the other
  template.

evolutiongo:
- Evolution GO has no route on "/" and answers 503 (LICENSE_REQUIRED)
  on API routes until a license is activated through the bundled
  manager UI, so the single domain never responded. Add a small nginx
  gateway that redirects "/" to /manager/login and proxies everything
  else (WebSockets included) 1:1 to evolution-go:8080, and point the
  domain at it.
- Persist /app/dbdata and /app/logs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 01:41:12 -06:00

42 lines
1.1 KiB
YAML

services:
evolution-go:
image: evoapicloud/evolution-go:latest
restart: always
environment:
- SERVER_PORT=${SERVER_PORT}
- CLIENT_NAME=${CLIENT_NAME}
- GLOBAL_API_KEY=${AUTHENTICATION_API_KEY}
- POSTGRES_AUTH_DB=${DATABASE_CONNECTION_URI}/evogo_auth?sslmode=disable
- POSTGRES_USERS_DB=${DATABASE_CONNECTION_URI}/evogo_users?sslmode=disable
- DATABASE_SAVE_MESSAGES=${DATABASE_SAVE_MESSAGES}
- WADEBUG=${WADEBUG}
- LOGTYPE=${LOGTYPE}
volumes:
- evolution-go-data:/app/dbdata
- evolution-go-logs:/app/logs
depends_on:
- evolution-postgres
evolution-gateway:
image: nginx:alpine
restart: always
volumes:
- ../files/gateway.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- evolution-go
evolution-postgres:
image: postgres:16-alpine
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DATABASE}
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- evolution-postgres-data:/var/lib/postgresql/data
volumes:
evolution-postgres-data:
evolution-go-data:
evolution-go-logs: