add run artifacts

Closes #6
This commit is contained in:
Christine Dodrill 2016-01-16 07:59:38 -08:00
parent b4ec8adf9c
commit d7a5ccb2cb
2 changed files with 20 additions and 0 deletions

7
run/Caddyfile Normal file
View File

@ -0,0 +1,7 @@
ponyapi.apps.xeserv.us {
log syslog
proxy / http://127.0.0.1:6452 {
proxy_header Host {host}
}
}

13
run/ponyapi.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=PonyAPI Server listening on port 6452
Requires=docker.service
Restart=always
[Service]
ExecStartPre=-/usr/bin/docker pull xena/ponyapi
ExecStartPre=-/usr/bin/docker rm -f ponyapi
ExecStart=/usr/bin/docker run -p 6452:5000 --name ponyapi xena/ponyapi
ExecStop=/usr/bin/docker rm -f ponyapi
[Install]
WantedBy=network.target