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