Skip to content

Instantly share code, notes, and snippets.

@andysheen
Created April 2, 2020 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andysheen/727895dd1d5e4a1494fb99ec67d44374 to your computer and use it in GitHub Desktop.
Save andysheen/727895dd1d5e4a1494fb99ec67d44374 to your computer and use it in GitHub Desktop.
[Unit]
Description=FeederNet Containers
After=docker.service
Requires=docker.service
[Service]
ExecStartPre=/usr/local/bin/docker-compose down
ExecStart=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
WorkingDirectory=/home/pi/FeederNet
Restart=on-failure
User=pi
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment