bridgehead/lib/systemd/bridgehead@.service

16 lines
370 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Bridgehead (%i) Service
[Service]
Restart=always
RestartSec=30
2021-12-21 13:48:28 +01:00
WorkingDirectory=/srv/docker/bridgehead/%i
2022-01-10 15:41:07 +01:00
ExecStartPre=docker-compose --env-file ../site-config/%i.env down
ExecStart=docker-compose --env-file ../site-config/%i.env up
ExecStop=docker-compose --env-file ../site-config/%i.env down
[Install]
WantedBy=multi-user.target