Files
glade_cameras/glade_cameras.service
T
2023-07-04 21:31:41 +03:00

18 lines
528 B
Desktop File

[Unit]
Description=glade_cameras
Requires=docker.service
After=docker.service
[Service]
Restart=always
User=root
Group=docker
WorkingDirectory=/mnt/storage/glade/glade_cameras
# Shutdown container (if running) when unit is started
ExecStartPre=/usr/bin/docker compose -f docker-compose.yml down
# Start container when unit is started
ExecStart=/usr/bin/docker compose -f docker-compose.yml up
# Stop container when unit is stopped
ExecStop=/usr/bin/docker compose -f docker-compose.yml down
[Install]
WantedBy=multi-user.target