mirror of
https://github.com/arikchakma/maily.to.git
synced 2026-04-25 22:25:51 +03:00
[GH-ISSUE #225] Docker/Docker Compose support for self-hosting #89
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/maily.to#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jedyskate on GitHub (Jan 1, 2026).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/225
Problem Statement
Currently, there is no official Docker image or docker-compose configuration for deploying maily.to in production environments. The project only provides development setup instructions (
pnpm dev), which makes it difficult for users who want to self-host the application.Current State
What exists:
pnpm install&pnpm dev)@maily-to/core,@maily-to/render)What's missing:
docker-compose.ymlconfigurationUse Case
Many users want to self-host maily.to for:
Technical Challenges Encountered
While attempting to create a custom Docker setup, several non-obvious challenges were encountered:
Vercel Preset Incompatibility: The
react-router.config.tsusesvercelPreset()which creates a serverless build structure incompatible with standard Node.js deployment (outputs tonodejs_eyJydW50aW1lIjoibm9kZWpzIn0/index.jsinstead ofindex.js)Monorepo Build Order: Building requires
pnpm build --filter=@maily-to/web...to ensure workspace dependencies (@maily-to/render,@maily-to/core) are built firstReact Router v7 Server: Starting the production server requires understanding React Router v7's build output structure and proper invocation
No Production Examples: Without official guidance, users must reverse-engineer the deployment process
Suggested Solution
Provide one or more of the following:
Option 1: Official Docker Image
Option 2: Reference Dockerfile
Add a production-ready
Dockerfileto the repository with:Option 3: Docker Compose Template
Provide a
docker-compose.ymltemplate showing:Option 4: Deployment Documentation
Add a deployment guide covering:
Additional Context
Technology Stack:
Similar Projects:
Many open-source projects provide Docker support out of the box:
Workarounds
For others attempting to self-host, here's a working approach:
react-router.config.tsfor standard buildspnpm build --filter=@maily-to/web...to build all workspace dependenciesnode ./build/server/index.jsor React Router's serve commandProposed Labels
enhancementdocumentationdeploymenthelp wantedWould maintainers be open to contributions in this area? Happy to submit a PR with a working Docker setup if there's interest.
@arikchakma commented on GitHub (Jan 13, 2026):
I am already working on the rewrite, I will add it in there probably. I will keep it in backlog.