Skip to content

Instantly share code, notes, and snippets.

View Ranger-NF's full-sized avatar
🔍
Trying to do something useful

Ranger Ranger-NF

🔍
Trying to do something useful
View GitHub Profile
@JamesCullum
JamesCullum / immich-docker-config.md
Last active March 28, 2024 04:30
docker-compose.yml for immich with WAF, DDoS protection, image resizing and without port forwarding

Setup Immich via Docker Compose with WAF, CDN, DDoS protection, no port forwarding and automated image resizing

In this guide, we are using the docker compose setup that is recommended by the Immich team. Once everything is configured and running in your local network, we can expand on it.

The first recommended step is to use Cloudflare Tunnel to make your local instance globally available. This is free and you benefit from the native DDoS protection, WAF and CDN from Cloudflare. The cloudflared daemon basically makes an outgoing connection to Cloudflare and makes the designed interfaces available on the internet, without granting access to undesired parts of the network.

Start off by creating a Cloudflare account, going into the "Zero Trust" portion of the account and add a new tunnel.