Add a Linux tips section and move Docker stacks to /srv/docker

This commit is contained in:
Djeex
2026-09-05 12:28:05 +02:00
parent 11d6c275c8
commit 142788d740
40 changed files with 894 additions and 330 deletions
+7 -6
View File
@@ -16,11 +16,12 @@ description: Install Immich, a self-hosted alternative to Google Photos and iClo
---
tree:
/:
- docker:
- immich:
- library/
- compose.yaml
- .env
- srv:
- docker:
- immich:
- library/
- compose.yaml
- .env
---
::
@@ -100,7 +101,7 @@ In the SWAG folders, create a file named `immich.subdomain.conf`.
::
```bash [Terminal]
sudo nano /docker/swag/config/nginx/proxy-confs/immich.subdomain.conf
sudo nano /srv/docker/swag/config/nginx/proxy-confs/immich.subdomain.conf
```
Then paste the following configuration:
+12 -11
View File
@@ -20,12 +20,13 @@ We'll be using the Docker image maintained by **LinuxServer.io**
---
tree:
/:
- docker:
- nextcloud:
- config/
- data/
- compose.yaml
- .env
- srv:
- docker:
- nextcloud:
- config/
- data/
- compose.yaml
- .env
---
::
@@ -45,8 +46,8 @@ services:
- PGID=${GUID}
- TZ=Etc/UTC
volumes:
- /docker/nextcloud/config:/config
- /docker/nextcloud/data:/data
- /srv/docker/nextcloud/config:/config
- /srv/docker/nextcloud/data:/data
ports:
- ${PORT}:443
restart: unless-stopped
@@ -54,7 +55,7 @@ services:
::note{to="/general/networking/samba"}
If youre using a NAS or network-shared drive via **Samba**, replace `/docker/nextcloud/data` with the path to your shared folder.
If youre using a NAS or network-shared drive via **Samba**, replace `/srv/docker/nextcloud/data` with the path to your shared folder.
::
### Set your environment variables
@@ -129,7 +130,7 @@ In Nextclouds files, edit the `config.php` file:
::
```bash [Terminal]
sudo nano /docker/nextcloud/config/www/nextcloud/config/config.php
sudo nano /srv/docker/nextcloud/config/www/nextcloud/config/config.php
```
Paste the following before the final `);`:
@@ -157,7 +158,7 @@ Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ct
In Swags folders, create the file `nextcloud.subdomain.conf`:
```bash [Terminal]
sudo nano /docker/swag/config/nginx/proxy-confs/nextcloud.subdomain.conf
sudo nano /srv/docker/swag/config/nginx/proxy-confs/nextcloud.subdomain.conf
```
Paste the following: