feat: implement local/self-host environments with docker#387
Open
sconetto wants to merge 9 commits into
Open
Conversation
- create Dockerfile to run service - create compose for local development and production deployment - create override example for custom production configuration - create local and prod .env.example to speed up configuration - create docker ignore - create basic minio bucket policy
- update git ignore to remove local dev files from repository - update vscode conf for single/double quotes
…r#132 - add const to check if running local/self-hosted - load custom image config when running local/self-hosted
- add self-hosting documentation - create .agent.md to add context for agentic coding - update readme including local development and docker features
|
@sconetto is attempting to deploy a commit to the Sam Becker Pro Team on Vercel. A member of the Team first needs to authorize it. |
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.
PR Description: Docker Compose Support for Local Development & Self-Hosting
Closes #132 and #382
Summary
Adds complete Docker Compose infrastructure for running exif-photo-blog locally and self-hosting in production, eliminating dependency on Vercel-specific services.
What's New
Docker Services:
app- Next.js application with hot-reload for developmentpostgres- PostgreSQL database for metadata storageminio- S3-compatible object storage for photosimgproxy- Image optimization and processingredis- Rate limiting (optional)Key Features:
dev-docker-compose.yml) and production (docker-compose.yml)Documentation:
docs/SELF_HOSTING.md).agent.mdfor project contextTechnical Changes
Configuration:
NEXT_PUBLIC_IMAGE_LOADERandNEXT_PUBLIC_IMGPROXY_URLenv varsnext.config.tswith custom loader support for self-hostingCode Updates:
Usage
Services
Breaking Changes
None - all changes are additive and backward compatible with existing Vercel deployments.
Testing