dokploy in dokploy UI phoenix in env variable

How to deploy Dockerfile add rel folder

To move domain to cloudflare -> set up account -> import domain (point nameserver to new thing) -> use A-Record to point to your hetzner servre

When doing certs on cloudflare don't do it on dokploy

Automated backups via cloudflare R2 and dokploy

Problems was initially: wrong docker image with outdated deps Then it was wrong API vars and I needed to rebuild Then more of the same Then DB not running

The runtime configue overrides the compiletime prod.exs config You need to have force ssl true but also forward the stuff properly so that it accepts the cloudflare forwarded protocol headers

Final fix that worked:

Summary of what fixed it:

  1. Configured domain for HTTPS in Dokploy - this created the Traefik router on the websecure entrypoint (port 443)
  2. Phoenix force_ssl config - rewrite_on: [:x_forwarded_proto] prevents redirect loops with Cloudflare proxy
  3. Removed duplicate domains - having multiple domains was causing confusion

set up the transactional email sender, ideally with postmark

SOMETIMES YOU NEED A REDEPLOY AFTER HAVING THE DOMAIN LINKED AND SET UP TO WHATEVER SERVICE