Created
July 31, 2014 11:56
-
-
Save LouisKottmann/3c1b3f124a7115d410d6 to your computer and use it in GitHub Desktop.
This file contains 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
# cat /etc/init/docker-postgres.conf | |
description "Docker container for PostgreSQL" | |
author "Louis Kottmann" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 5 30 | |
pre-start script | |
set +e | |
docker stop srvcont_postgres | |
docker rm srvcont_postgres | |
set -e | |
end script | |
script | |
/bin/sh -c "$(cat /home/usrname/docker/srvcont_postgres/command.txt)" | |
end script | |
pre-stop script | |
set +e | |
docker stop srvcont_postgres | |
set -e | |
end script | |
console output | |
# cat /etc/init/docker-redis.conf | |
description "Docker container for Redis" | |
author "Louis Kottmann" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 5 30 | |
pre-start script | |
set +e | |
docker stop srvcont_redis | |
docker rm srvcont_redis | |
set -e | |
end script | |
script | |
/bin/sh -c "$(cat /home/usrname/docker/srvcont_redis/command.txt)" | |
end script | |
pre-stop script | |
set +e | |
docker stop srvcont_redis | |
set -e | |
end script | |
console output | |
# cat /etc/init/docker-gitlab.conf | |
description "Docker container for Gitlab" | |
author "Louis Kottmann" | |
start on filesystem and started docker-postgres and started docker-redis | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 5 30 | |
pre-start script | |
set +e | |
docker stop srvcont_gitlab | |
docker rm srvcont_gitlab | |
set -e | |
end script | |
script | |
/bin/sh -c "$(cat /home/usrname/docker/srvcont_gitlab/command.txt)" | |
end script | |
pre-stop script | |
set +e | |
docker stop srvcont_gitlab | |
set -e | |
end script | |
console output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment