Last active
August 29, 2015 14:25
-
-
Save stanislavb/f469c6c05f84df650553 to your computer and use it in GitHub Desktop.
Rolehaven docker hosting
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
db: | |
image: mongo | |
volumes: | |
- /data/db | |
rolehaven: | |
image: yxeri/rolehaven:stable | |
environment: | |
- DBHOST=db | |
- VIRTUAL_HOST=terminal.example.com | |
links: | |
- db | |
ports: | |
- "8888" | |
log_driver: "syslog" |
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
*/15 * * * * root /opt/docker/run-rolehaven-dev.sh; /opt/docker/run-rolehaven.sh |
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
db: | |
image: mongo | |
volumes: | |
- /data/db | |
rolehaven: | |
image: yxeri/rolehaven | |
environment: | |
- DBHOST=db | |
- VIRTUAL_HOST=dev.terminal.example.com | |
links: | |
- db | |
ports: | |
- "8888" | |
log_driver: "syslog" | |
mongoexpress: | |
image: knickers/mongo-express | |
environment: | |
- VIRTUAL_HOST=mongo.dev.terminal.example.com | |
links: | |
- db:mongo |
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
db: | |
image: mongo | |
volumes: | |
- /data/db | |
rolehaven: | |
image: yxeri/rolehaven | |
environment: | |
- DBHOST=db | |
- VIRTUAL_HOST=dev.terminal.example.com | |
links: | |
- db | |
ports: | |
- "8888" | |
log_driver: "syslog" |
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
#!/bin/bash | |
docker run -d \ | |
--name nginx-proxy \ | |
-v /var/run/docker.sock:/tmp/docker.sock:ro \ | |
-p 80:80 \ | |
jwilder/nginx-proxy |
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
#!/bin/bash | |
docker run --rm --log-driver=syslog -v /var/run/docker.sock:/var/run/docker.sock stanislavb/docker-image-diff yxeri/rolehaven | |
if [ $? == 2 ]; then | |
docker pull yxeri/rolehaven | |
docker-compose -p rolehavendev -f /opt/docker/rolehavendev-compose.yml up -d | |
fi |
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
#!/bin/bash | |
docker run --rm --log-driver=syslog -v /var/run/docker.sock:/var/run/docker.sock stanislavb/docker-image-diff yxeri/rolehaven:stable | |
if [ $? == 2 ]; then | |
docker pull yxeri/rolehaven:stable | |
docker-compose -p rolehaven -f /opt/docker/rolehaven-compose.yml up -d | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment