Skip to content

Self Hosting #132

Description

@jbgolds

Hey Sam, thanks for all your hard work creating this. Has reopened my eyes to photography!!

I have done some work in a private repo fork of this project to dockerize + self host the app. It's a bit "hacky" as of right now:

  • Regarding self hosting images, can run a local https://min.io server to act as buckets, but it seems the S3 API <> Minio Server are not fully compatible, specifically the pre-signing of URLs.
    • For the time being to get around this, I've just used Cloudflare R2 as 10GB free is pretty sweet :). I can build out the APIs to properly interact with a Minio Docker Container, but have tabled that for awhile as 10GB storage and cloudflare caching keeps R2 operation rates super low.
  • I'm using cloudflare tunnels to open the service to internet without exposing ports for ease + for those who have dynamic IPs. This leaves my VPS's only open port to be the SSH port.
  • Regarding your previous comment about another issue with next/image, I run my own image optimization server and use a custom loader to instead hit that server.
  • Regarding the "hacky" part, I'm having issues getting it to build off a single docker compose up due to DB connection problems during BUILD time only. Usually end up having to build Postgres container first, and then building the nextjs app. I believe this can be solved with actually publishing a docker image.
  • Image share rendering does not seem to work like it does on Vercel, will need to dig into this but not my biggest concern.

I have moved this over and am hosting this on a VPS using ~1GB of RAM for everything, happy to share url over email for you to take a look as not ready to post publicly incase of any security issue I may have overlooked 😅.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions