Add service files

This commit is contained in:
BatchAccount 1001 2022-12-07 21:12:23 +01:00
parent 3761c7b1f0
commit 49f0c362ee
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,17 @@
[Unit]
Description=Docker Compose Gitea Application Service
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=/opt/gitea
ExecStart=/usr/bin/docker-compose --project-name gitea up
ExecStop=/usr/bin/docker-compose --project-name gitea down
TimeoutStartSec=0
Restart=on-failure
StartLimitIntervalSec=60
StartLimitBurst=3
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,17 @@
[Unit]
Description=Docker Compose Kanboard Application Service
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=/opt/kanboard
ExecStart=/usr/bin/docker-compose --project-name kanboard up
ExecStop=/usr/bin/docker-compose --project-name kanboard down
TimeoutStartSec=0
Restart=on-failure
StartLimitIntervalSec=60
StartLimitBurst=3
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,17 @@
[Unit]
Description=Docker Compose OpenLDAP Application Service
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=/opt/openldap
ExecStart=/usr/bin/docker-compose --project-name openldap up
ExecStop=/usr/bin/docker-compose --project-name openldap down
TimeoutStartSec=0
Restart=on-failure
StartLimitIntervalSec=60
StartLimitBurst=3
[Install]
WantedBy=multi-user.target