Created
April 2, 2020 15:21
-
-
Save andysheen/727895dd1d5e4a1494fb99ec67d44374 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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