feat(backend): add Docker support for self-hosting#349
Open
joaoclaudio82 wants to merge 1 commit into
Open
Conversation
Add a multi-stage Dockerfile that runs the backend as an HTTP server (apps/backend/express.js), so cards can be served outside Vercel. The image builds the core package, produces a production-only bundle via 'pnpm deploy', and runs as a non-root user with a healthcheck against /api/status/up. - Promote express to a runtime dependency and add a 'start' script, since HTTP-server mode needs express at runtime. - Add .dockerignore, docker-compose.yml (with an optional Postgres profile) and docs/docker.md. - Postgres stays optional: without POSTGRES_URL the app renders cards with no database. - Structure leaves room for a future static-SVG generation mode. Closes stats-organization#287
|
@joaoclaudio82 is attempting to deploy a commit to the martin-mfg's projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
This PR addresses #287 by adding a container image that runs the backend as an HTTP server, so the cards can be served outside Vercel. A few notes for reviewers:
I've run |
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.
Add a multi-stage Dockerfile that runs the backend as an HTTP server (apps/backend/express.js), so cards can be served outside Vercel. The image builds the core package, produces a production-only bundle via 'pnpm deploy', and runs as a non-root user with a healthcheck against /api/status/up.
Closes #287