From eeeaa706a25b5b96f08a68c5d5677d420c3bc3f1 Mon Sep 17 00:00:00 2001 From: Djeex Date: Fri, 4 Sep 2026 14:56:03 +0200 Subject: [PATCH] Convert Immich installation and SWAG exposure sections to steps --- content/en/3.serveex/6.cloud/1.immich.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/content/en/3.serveex/6.cloud/1.immich.md b/content/en/3.serveex/6.cloud/1.immich.md index 4177cc5..ea54d76 100644 --- a/content/en/3.serveex/6.cloud/1.immich.md +++ b/content/en/3.serveex/6.cloud/1.immich.md @@ -29,6 +29,9 @@ tree: --- :: +::steps{level="3"} +### Deploy the stack + Open Dockge, click on `compose`, name the stack `immich`, then copy and paste the latest `docker-compose.yml` [published here](https://github.com/immich-app/immich/blob/main/docker/docker-compose.yml). ::warning @@ -36,6 +39,8 @@ Open Dockge, click on `compose`, name the stack `immich`, then copy and paste th __Warning__: Do not add the Watchtower label to the Immich stack. Immich evolves rapidly, and automatic updates may break your installation. :: +### Set your environment variables + Configure the `.env` file by copying the latest version [from here](https://github.com/immich-app/immich/blob/main/docker/example.env) and follow the comments in the file. ::note @@ -47,19 +52,23 @@ If you're using a NAS or a network-shared drive via [Samba](/general/networking/ ✨ __Tip:__ If your CPU/iGPU/GPU supports it, Immich can use hardware acceleration for video playback and image recognition. This can triple performance. Learn more about [Transcoding](https://immich.app/docs/features/hardware-transcoding/) and [Machine Learning](https://immich.app/docs/features/ml-hardware-acceleration). :: -Deploy the container. +Deploy the container. You can connect and follow the setup instructions at `http://yourserverip:2283`. -You're done! You can connect and follow the setup instructions at `http://yourserverip:2283`. +### Done ! +:: ## Exposing Immich with SWAG The main benefit of this setup is being able to access Immich remotely on all your devices. We'll expose Immich using SWAG. -::note +::note{icon=""} 📋 __Before you begin:__

We assume that you have a subdomain `immich.yourdomain.com` with a `CNAME` pointing to `yourdomain.com` in your [DNS zone](/general/networking/dns). Also, unless you're using [Cloudflare Zero Trust](/serveex/security/cloudflare), make sure port `443` on your router is forwarded to port `443` on your server via [NAT rules](/general/networking/nat). :: +::steps{level="3"} +### Add Immich's network to SWAG + In Dockge, open the SWAG stack and edit the compose file to add Immich's network: ```yaml [compose.yaml] @@ -86,6 +95,8 @@ We're assuming Immich's network is named `immich_default`. You can check connect Restart the stack by clicking "deploy" and wait for SWAG to fully initialize. +### Create the subdomain.conf file + In the SWAG folders, create a file named `immich.subdomain.conf`. ::tip{icon=""} @@ -159,6 +170,9 @@ server { Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit. +### Done ! +:: + That's it! Immich is now accessible from the internet. Don’t forget to install the [iOS](https://apps.apple.com/us/app/immich/id1613945652) / [Android](https://play.google.com/store/apps/details?id=app.alextran.immich) apps to sync your devices. ## Protecting Immich with Pocket ID @@ -190,7 +204,7 @@ In Immich, go to _Administration > Settings > Authentication Settings > OAuth_, ### Done ! :: -::tip +::tip{icon=""} ✨ You can use [Authentik](/serveex/advanced/authentik) instead of Pocket ID: 1. In Authentik, create an application and an OAuth2/OpenID Connect provider named `immich`, with the same three redirect URIs as above (type `Strict`).