feat(id.tjo.space): changes
This commit is contained in:
parent
ca42ea4422
commit
3a960edad7
2 changed files with 4 additions and 1 deletions
id.tjo.space
|
@ -46,6 +46,7 @@ echo "=== Setup Caddy"
|
||||||
systemctl start caddy
|
systemctl start caddy
|
||||||
|
|
||||||
echo "=== Setup Postgresql"
|
echo "=== Setup Postgresql"
|
||||||
|
mkdir -p /etc/postgresql
|
||||||
cat <<EOF >/etc/postgresql/secrets.env
|
cat <<EOF >/etc/postgresql/secrets.env
|
||||||
POSTGRES_PASSWORD=${POSTGRESQL_PASSWORD}
|
POSTGRES_PASSWORD=${POSTGRESQL_PASSWORD}
|
||||||
EOF
|
EOF
|
||||||
|
@ -55,6 +56,7 @@ echo "=== Setup Redis"
|
||||||
systemctl start redis
|
systemctl start redis
|
||||||
|
|
||||||
echo "=== Setup Authentik Server"
|
echo "=== Setup Authentik Server"
|
||||||
|
mkdir -p /etc/authentik
|
||||||
cat <<EOF >/etc/authentik/secrets.env
|
cat <<EOF >/etc/authentik/secrets.env
|
||||||
AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
|
AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
|
||||||
AUTHENTIK_EMAIL__PASSWORD=${AUTHENTIK_EMAIL__PASSWORD}
|
AUTHENTIK_EMAIL__PASSWORD=${AUTHENTIK_EMAIL__PASSWORD}
|
||||||
|
@ -66,6 +68,7 @@ echo "=== Setup Authentik Worker"
|
||||||
systemctl start authentik-worker
|
systemctl start authentik-worker
|
||||||
|
|
||||||
echo "=== Setup Authentik LDAP"
|
echo "=== Setup Authentik LDAP"
|
||||||
|
mkdir -p /etc/authentik
|
||||||
cat <<EOF >/etc/authentik/ldap.secrets.env
|
cat <<EOF >/etc/authentik/ldap.secrets.env
|
||||||
AUTHENTIK_TOKEN=${AUTHENTIK_LDAP_TOKEN}
|
AUTHENTIK_TOKEN=${AUTHENTIK_LDAP_TOKEN}
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Description=A Postgresql Container
|
Description=A Postgresql Container
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
Image=docker.io/postgresql:17.4
|
Image=docker.io/postgres:17.4
|
||||||
Volume=/var/lib/postgresql/data:/srv/postgresql/data
|
Volume=/var/lib/postgresql/data:/srv/postgresql/data
|
||||||
EnvironmentFile=/etc/postgresql/secrets.env
|
EnvironmentFile=/etc/postgresql/secrets.env
|
||||||
Environment=POSTGRES_USER=id.tjo.space
|
Environment=POSTGRES_USER=id.tjo.space
|
||||||
|
|
Loading…
Reference in a new issue