feat: add Docker support for self-hosted deployment#872
Open
nothingtosurprise wants to merge 11 commits intokoala73:mainfrom
Open
feat: add Docker support for self-hosted deployment#872nothingtosurprise wants to merge 11 commits intokoala73:mainfrom
nothingtosurprise wants to merge 11 commits intokoala73:mainfrom
Conversation
Add Redis and PORT configuration for Docker self-hosting.
|
@nothingtosurprise is attempting to deploy a commit to the Elie Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
Hi @koala73! Thanks for the review. I understand the concerns. I'm happy to revise this to:
Would love your guidance on the preferred approach! 🙏 |
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.
Summary
This PR was developed and syntax-validated but NOT runtime-tested
due to environment limitations (developed on Android without Docker).
Before merging, please run:
docker compose build— verify no build errorsdocker compose up -d— verify all 3 services startCommunity testing before merge is welcome!
Summary
Adds complete Docker support enabling self-hosted deployment
without Vercel. Closes the self-hosted deployment roadmap item.
Type of change
Files Added
Dockerfile— multi-stage build (node:20-alpine + nginx:alpine)nginx.conf— SPA routing, gzip, API proxydocker-compose.yml— 3 services (app, api, redis).env.example— Docker self-hosting variables addeddocker/server/Dockerfile— Express API containerdocker/server/package.json— express, cors, ioredisdocker/server/index.js— 30+ routes replacing Vercel Edge FunctionsUsage
cp .env.example .env
docker compose build
docker compose up -d
Frontend: http://localhost:3000
API: http://localhost:3001/api/version
Checklist