Add systemd service files for portainer and yacht

This commit is contained in:
Isaac Shoebottom 2024-05-30 13:02:35 -03:00
parent b11288dc1f
commit 80029a1bce
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[Unit]
Description=Portainer container deployment service
Type=simple
[Service]
WorkingDirectory=/docker/compose/portainer
ExecStart=docker-compose up
ExecStop=docker-compose down
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=default.target

13
yacht/yacht.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Yacht container deployment service
Type=simple
[Service]
WorkingDirectory=/docker/compose/yacht
ExecStart=docker-compose up
ExecStop=docker-compose down
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=default.target