Add Docker Compose setup guide and local development configuration#2479
Closed
mikaelhadler wants to merge 1 commit intoEvolutionAPI:mainfrom
Closed
Add Docker Compose setup guide and local development configuration#2479mikaelhadler wants to merge 1 commit intoEvolutionAPI:mainfrom
mikaelhadler wants to merge 1 commit intoEvolutionAPI:mainfrom
Conversation
- Add docker-compose.local.yaml: standalone local setup without the external dokploy-network dependency used in production - Add .env.local.example: complete env template with correct container hostnames (evolution-postgres, evolution-redis), Postgres credentials variables missing from the original .env.example, and inline docs for every required/recommended variable - Add DOCKER_SETUP.md: step-by-step guide covering prerequisites, env configuration, startup, health check, common errors and fixes, and useful commands https://claude.ai/code/session_01M9qvr7ZccnyViaVuMWr4uv
Contributor
Reviewer's GuideAdds a dedicated local Docker Compose setup for the Evolution API stack, including a new developer-facing setup guide, a local-only docker-compose configuration, and an example .env file preconfigured for running all services (API, frontend, Redis, PostgreSQL) in containers on an isolated local network. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
docker-compose.local.yaml, consider pinning the images to specific versions (e.g.evoapicloud/evolution-api:x.y,redis:7-alpine,postgres:15-alpine) instead of:latestto avoid unexpected breaking changes when images are updated. - For the local Postgres service, you might simplify configuration by using only the custom
POSTGRES_*variables from.env(as you already map them intoPOSTGRES_DB/USER/PASSWORD) and avoiding the additionalenv_fileon theevolution-postgresservice to reduce the chance of conflicting database settings.
Prompt for AI Agents
Please address the comments from this code review: ## Overall Comments - In `docker-compose.local.yaml`, consider pinning the images to specific versions (e.g. `evoapicloud/evolution-api:x.y`, `redis:7-alpine`, `postgres:15-alpine`) instead of `:latest` to avoid unexpected breaking changes when images are updated. - For the local Postgres service, you might simplify configuration by using only the custom `POSTGRES_*` variables from `.env` (as you already map them into `POSTGRES_DB/USER/PASSWORD`) and avoiding the additional `env_file` on the `evolution-postgres` service to reduce the chance of conflicting database settings.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Description
This PR adds comprehensive documentation and configuration files to enable developers to run the Evolution API stack locally using Docker Compose. It includes:
DOCKER_SETUP.md - A detailed guide covering:
.env.local.example - A pre-configured environment file for local development with:
docker-compose.local.yaml - A local-specific Docker Compose configuration that:
dokploy-networkused in productionevolution-netbridge network🔗 Related Issue
This addresses the need for clear local development setup documentation and removes friction for new contributors getting the project running locally.
🧪 Type of Change
🧪 Testing
✅ Checklist
📝 Additional Notes
The
.env.local.examplefile is intentionally separate from.env.examplebecause:POSTGRES_DATABASE,POSTGRES_USERNAME,POSTGRES_PASSWORD) needed for the local Docker containerevolution-postgres,evolution-redis) instead of localhostDevelopers should copy
.env.local.exampleto.envand only modify the[OBRIGATÓRIO](required) variables before runningdocker compose -f docker-compose.local.yaml up -d.https://claude.ai/code/session_01M9qvr7ZccnyViaVuMWr4uv
Summary by Sourcery
Add local Docker Compose-based development setup and documentation for running the Evolution API stack locally.
Enhancements:
Build:
Documentation: