bridgehead/convenience/bridgehead@.service

17 lines
417 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
2021-12-21 13:48:28 +01:00
ExecStartPre=/usr/local/bin/docker-compose --env-file ../site-config/%i.env down
ExecStart=/usr/local/bin/docker-compose --env-file ../site-config/%i.env up
2021-12-21 13:48:28 +01:00
ExecStop=/usr/local/bin/docker-compose --env-file ../site-config/%i.env down
[Install]
WantedBy=multi-user.target