dankclaw: standardize gitea/authentik/hermes data roots under /home/dank/Containers
Repoint Volume=/EnvironmentFile= in the 8 affected quadlet units to the caddy-established Containers/<svc> layout: gitea (data, postgres, env), authentik (data, postgres), hermes (data, webui checkout). Data-root mv on the target happens at deploy time before each group's unit restart; same-fs rename, instantly reversible. Running containers keep their inode-bound binds until the unit restart flips them to the new path.
This commit is contained in:
1 parent
b206f477ad
commit
e570d92bb9
8 files changed
+15
-15
No files matched your search
@@ -32,7 +32,7 @@ Environment=AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
|
|||||||
Environment=AUTHENTIK_HOST=https://auth.franksdank.cloud
|
Environment=AUTHENTIK_HOST=https://auth.franksdank.cloud
|
||||||
Environment=AUTHENTIK_INSECURE=false
|
Environment=AUTHENTIK_INSECURE=false
|
||||||
Environment=AUTHENTIK_TOKEN=${AUTHENTIK_OUTPOST_TOKEN}
|
Environment=AUTHENTIK_TOKEN=${AUTHENTIK_OUTPOST_TOKEN}
|
||||||
Volume=/home/dank/authentik/data:/data
|
Volume=/home/dank/Containers/authentik/data:/data
|
||||||
User=0:0
|
User=0:0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ EnvironmentFile=/home/dank/serverAppConfigs/dankclaw/.env
|
|||||||
Environment=POSTGRES_DB=authentik
|
Environment=POSTGRES_DB=authentik
|
||||||
Environment=POSTGRES_USER=authentik
|
Environment=POSTGRES_USER=authentik
|
||||||
Environment=POSTGRES_PASSWORD=${AUTHENTIK_PG_PASS}
|
Environment=POSTGRES_PASSWORD=${AUTHENTIK_PG_PASS}
|
||||||
Volume=/home/dank/authentik/postgres:/var/lib/postgresql/data
|
Volume=/home/dank/Containers/authentik/postgres:/var/lib/postgresql/data
|
||||||
# Unquoted argv: this quadlet generator space-splits HealthCmd into the
|
# Unquoted argv: this quadlet generator space-splits HealthCmd into the
|
||||||
# healthcheck's argv array, so a quoted probe would arrive mangled (the old
|
# healthcheck's argv array, so a quoted probe would arrive mangled (the old
|
||||||
# `/bin/sh -c "pg_isready..."` form arrived as /bin/sh + broken args and
|
# `/bin/sh -c "pg_isready..."` form arrived as /bin/sh + broken args and
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Environment=AUTHENTIK_POSTGRESQL__NAME=authentik
|
|||||||
Environment=AUTHENTIK_POSTGRESQL__USER=authentik
|
Environment=AUTHENTIK_POSTGRESQL__USER=authentik
|
||||||
Environment=AUTHENTIK_POSTGRESQL__PASSWORD=${AUTHENTIK_PG_PASS}
|
Environment=AUTHENTIK_POSTGRESQL__PASSWORD=${AUTHENTIK_PG_PASS}
|
||||||
Environment=AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
|
Environment=AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
|
||||||
Volume=/home/dank/authentik/data:/data
|
Volume=/home/dank/Containers/authentik/data:/data
|
||||||
User=0:0
|
User=0:0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Install path on dankclaw: ~/.config/containers/systemd/gitea-postgres.container
|
# Install path on dankclaw: ~/.config/containers/systemd/gitea-postgres.container
|
||||||
# Unit name: gitea-postgres.service (podman 5.x drops the container- prefix)
|
# Unit name: gitea-postgres.service (podman 5.x drops the container- prefix)
|
||||||
#
|
#
|
||||||
# The DB password lives in /opt/gitea/.env on the host (mode 0600).
|
# The DB password lives in /home/dank/Containers/gitea/env on the host (mode 0600).
|
||||||
# This file holds no secrets. See serverAppConfigs-docs/Dankclaw/Gitea.md.
|
# This file holds no secrets. See serverAppConfigs-docs/Dankclaw/Gitea.md.
|
||||||
# The [Service] EnvironmentFile= line lets systemd expand
|
# The [Service] EnvironmentFile= line lets systemd expand
|
||||||
# ${GITEA_DB_PASSWORD} in the generated ExecStart.
|
# ${GITEA_DB_PASSWORD} in the generated ExecStart.
|
||||||
@@ -16,14 +16,14 @@ After=network.target
|
|||||||
ContainerName=gitea-postgres
|
ContainerName=gitea-postgres
|
||||||
Network=gitea.network
|
Network=gitea.network
|
||||||
Image=docker.io/library/postgres:16-alpine
|
Image=docker.io/library/postgres:16-alpine
|
||||||
EnvironmentFile=/opt/gitea/.env
|
EnvironmentFile=/home/dank/Containers/gitea/env
|
||||||
Environment=POSTGRES_USER=gitea
|
Environment=POSTGRES_USER=gitea
|
||||||
Environment=POSTGRES_PASSWORD=${GITEA_DB_PASSWORD}
|
Environment=POSTGRES_PASSWORD=${GITEA_DB_PASSWORD}
|
||||||
Environment=POSTGRES_DB=gitea
|
Environment=POSTGRES_DB=gitea
|
||||||
Volume=/opt/gitea/data/gitea-postgres:/var/lib/postgresql/data
|
Volume=/home/dank/Containers/gitea/postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/opt/gitea/.env
|
EnvironmentFile=/home/dank/Containers/gitea/env
|
||||||
TimeoutStartSec=900
|
TimeoutStartSec=900
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
# The [Service] EnvironmentFile= line lets systemd expand
|
# The [Service] EnvironmentFile= line lets systemd expand
|
||||||
# ${GITEA_DB_PASSWORD} in the generated ExecStart.
|
# ${GITEA_DB_PASSWORD} in the generated ExecStart.
|
||||||
# The DB password lives in /opt/gitea/.env on the host (mode 0600).
|
# The DB password lives in /home/dank/Containers/gitea/env on the host (mode 0600).
|
||||||
# This file holds no secrets. See serverAppConfigs-docs/Dankclaw/Gitea.md.
|
# This file holds no secrets. See serverAppConfigs-docs/Dankclaw/Gitea.md.
|
||||||
#
|
#
|
||||||
# Ports (live): 3000 = HTTP UI/API, 2222 = git SSH. The docs table in
|
# Ports (live): 3000 = HTTP UI/API, 2222 = git SSH. The docs table in
|
||||||
@@ -20,7 +20,7 @@ After=gitea-postgres.service network.target
|
|||||||
ContainerName=gitea-server
|
ContainerName=gitea-server
|
||||||
Network=gitea.network
|
Network=gitea.network
|
||||||
Image=docker.io/gitea/gitea:latest
|
Image=docker.io/gitea/gitea:latest
|
||||||
EnvironmentFile=/opt/gitea/.env
|
EnvironmentFile=/home/dank/Containers/gitea/env
|
||||||
Environment=DATABASE_TYPE=postgres
|
Environment=DATABASE_TYPE=postgres
|
||||||
Environment=DATABASE_HOST=gitea-postgres
|
Environment=DATABASE_HOST=gitea-postgres
|
||||||
Environment=DATABASE_NAME=gitea
|
Environment=DATABASE_NAME=gitea
|
||||||
@@ -31,12 +31,12 @@ Environment=USER_UID=1000
|
|||||||
Environment=USER_GID=1000
|
Environment=USER_GID=1000
|
||||||
PublishPort=0.0.0.0:3000:3000
|
PublishPort=0.0.0.0:3000:3000
|
||||||
PublishPort=2222:22
|
PublishPort=2222:22
|
||||||
Volume=/opt/gitea/data/gitea-gitea:/data
|
Volume=/home/dank/Containers/gitea/data:/data
|
||||||
Volume=/etc/timezone:/etc/timezone:ro
|
Volume=/etc/timezone:/etc/timezone:ro
|
||||||
Volume=/etc/localtime:/etc/localtime:ro
|
Volume=/etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/opt/gitea/.env
|
EnvironmentFile=/home/dank/Containers/gitea/env
|
||||||
TimeoutStartSec=900
|
TimeoutStartSec=900
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ Pull=never
|
|||||||
Network=dankclaw_default
|
Network=dankclaw_default
|
||||||
Environment=HERMES_DATA_DIR=/data
|
Environment=HERMES_DATA_DIR=/data
|
||||||
Environment=HERMES_HOME=/data
|
Environment=HERMES_HOME=/data
|
||||||
Volume=/home/dank/hermes-data:/data
|
Volume=/home/dank/Containers/hermes/data:/data
|
||||||
PublishPort=9119:9119
|
PublishPort=9119:9119
|
||||||
Exec=bash -c 'hermes dashboard --host 0.0.0.0 --port 9119 --no-open --skip-build'
|
Exec=bash -c 'hermes dashboard --host 0.0.0.0 --port 9119 --no-open --skip-build'
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ Environment=HERMES_WEBUI_PASSWORD=${HERMES_WEBUI_PASSWORD}
|
|||||||
# Headless host: never show the first-run wizard (a profile already
|
# Headless host: never show the first-run wizard (a profile already
|
||||||
# exists in /data from the gateway).
|
# exists in /data from the gateway).
|
||||||
Environment=HERMES_WEBUI_SKIP_ONBOARDING=1
|
Environment=HERMES_WEBUI_SKIP_ONBOARDING=1
|
||||||
Volume=/home/dank/hermes-data:/data
|
Volume=/home/dank/Containers/hermes/data:/data
|
||||||
Volume=/home/dank/hermes-webui:/webui
|
Volume=/home/dank/Containers/hermes/webui:/webui
|
||||||
Exec=python3 /webui/bootstrap.py --foreground
|
Exec=python3 /webui/bootstrap.py --foreground
|
||||||
# JSON exec form on purpose: this quadlet generator joins a bare HealthCmd
|
# JSON exec form on purpose: this quadlet generator joins a bare HealthCmd
|
||||||
# into ONE argv element with \x20 escapes and then shell-executes it — the
|
# into ONE argv element with \x20 escapes and then shell-executes it — the
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Environment=HERMES_HOME=/data
|
|||||||
Environment=SIGNAL_HTTP_URL=http://127.0.0.1:8080
|
Environment=SIGNAL_HTTP_URL=http://127.0.0.1:8080
|
||||||
Environment=SIGNAL_ACCOUNT=${SIGNAL_ACCOUNT}
|
Environment=SIGNAL_ACCOUNT=${SIGNAL_ACCOUNT}
|
||||||
Environment=SIGNAL_ALLOWED_USERS=${SIGNAL_ALLOWED_USERS}
|
Environment=SIGNAL_ALLOWED_USERS=${SIGNAL_ALLOWED_USERS}
|
||||||
Volume=/home/dank/hermes-data:/data
|
Volume=/home/dank/Containers/hermes/data:/data
|
||||||
Exec=bash -c 'hermes gateway run --force -v'
|
Exec=bash -c 'hermes gateway run --force -v'
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|||||||
Reference in new issue
Block a user