mirror of https://github.com/samply/bridgehead.git
16 lines
503 B
SYSTEMD
16 lines
503 B
SYSTEMD
[Unit]
|
|
Description=Bridgehead (%i) Service
|
|
|
|
[Service]
|
|
Restart=always
|
|
RestartSec=30
|
|
|
|
WorkingDirectory=/srv/docker/bridgehead/
|
|
|
|
ExecStartPre=/bin/bash -c '`which docker-compose` -f %i/docker-compose.yml --env-file site-config/%i.env down'
|
|
ExecStart=/bin/bash -c '`which docker-compose` -f %i/docker-compose.yml --env-file site-config/%i.env up'
|
|
ExecStop=/bin/bash -c '`which docker-compose` -f %i/docker-compose.yml --env-file site-config/%i.env down'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|