bookstack.service 517 Bytes
Newer Older
Nick Busey's avatar
Nick Busey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[Unit]
Description=HomelabOS bookstack Service
After=docker.service
Requires=docker.service

[Service]
TimeoutSec=infinity
Restart=always
RestartSec=3

ExecStartPre=/usr/bin/docker-compose -f /var/homelabos/bookstack/docker-compose.bookstack.yml -p bookstack down

ExecStart=/usr/bin/docker-compose -f /var/homelabos/bookstack/docker-compose.bookstack.yml -p bookstack up
ExecStop=/usr/bin/docker-compose -f /var/homelabos/bookstack/docker-compose.bookstack.yml -p bookstack stop

[Install]
WantedBy=multi-user.target