Created
October 13, 2016 14:47
-
-
Save f440/dc31bdfbe429f7ed1adf0f03c66c95b2 to your computer and use it in GitHub Desktop.
systemd setting for memocurial
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=Memocurial | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
ExecStartPre=/usr/bin/docker run -v /var/lib/memocurial/var:/app/var --entrypoint "bin/buildout" f440/memocurial | |
ExecStartPre=/usr/bin/docker run -v /var/lib/memocurial/var:/app/var f440/memocurial init-db | |
ExecStart=/usr/bin/docker run -p 5000:5000 --name %n -v /var/lib/memocurial/var:/app/var f440/memocurial runserver -h 0.0.0.0 | |
ExecStop=/usr/bin/docker stop -t 3 %n | |
ExecStopPost=/usr/bin/docker rm -f %n | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment