change back from service to regular docker compose

This commit is contained in:
Philip Henning 2024-11-19 15:51:38 +01:00
parent 8a306e0c4f
commit 7489d19e41
2 changed files with 4 additions and 42 deletions

View file

@ -95,21 +95,3 @@ Persistent=true
[Install]
WantedBy=timers.target
EOF
# Setup systemd service for authentik
[[ ! -f /etc/systemd/system/authentik.service ]] && cat <<EOF > /etc/systemd/system/authentik.service && systemctl daemon-reload && systemctl enable authentik.service
[Unit]
Description=Authentik Docker Compose Service
After=network.target docker.service
Requires=docker.service
[Service]
Restart=always
WorkingDirectory=${AUTHENTIK_DOCKER_COMPOSE_PATH}
ExecStart=/usr/bin/docker compose up -d
ExecStop=/usr/bin/docker compose down
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target
EOF