Spotter-VM/cts/etc/init.d/cts

18 lines
307 B
Plaintext
Executable File

#!/sbin/openrc-run
description="CTS docker container"
depend() {
need docker net
use dns logger netmount
after postgres
}
start() {
/usr/bin/docker run -d --rm --name cts -h cts --link postgres -p 127.0.0.1:9006:8006 -v /srv/cts/conf:/srv/cts/cts/settings cts
}
stop() {
/usr/bin/docker stop cts
}