23 lines
318 B
Plaintext
Executable File
23 lines
318 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="CTS docker container"
|
|
|
|
depend() {
|
|
need docker net postgres
|
|
use dns logger netmount
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm \
|
|
--name cts \
|
|
-h cts \
|
|
--link postgres \
|
|
-p 127.0.0.1:8006:8006 \
|
|
-v /srv/cts/conf:/srv/cts/cts/settings \
|
|
cts
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop cts
|
|
}
|