Skip to content

Instantly share code, notes, and snippets.

@stanislavb
Last active August 29, 2015 14:25
Show Gist options
  • Save stanislavb/f469c6c05f84df650553 to your computer and use it in GitHub Desktop.
Save stanislavb/f469c6c05f84df650553 to your computer and use it in GitHub Desktop.
Rolehaven docker hosting
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"
*/15 * * * * root /opt/docker/run-rolehaven-dev.sh; /opt/docker/run-rolehaven.sh
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
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"
#!/bin/bash
docker run -d \
--name nginx-proxy \
-v /var/run/docker.sock:/tmp/docker.sock:ro \
-p 80:80 \
jwilder/nginx-proxy
#!/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
#!/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