bridgehead/convenience/bridgehead@.service

17 lines
417 B
SYSTEMD

[Unit]
Description=Bridgehead (%i) Service
[Service]
Restart=always
RestartSec=30
WorkingDirectory=/srv/docker/bridgehead/%i
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
ExecStop=/usr/local/bin/docker-compose --env-file ../site-config/%i.env down
[Install]
WantedBy=multi-user.target