Last active
January 5, 2017 23:50
-
-
Save edrex/7ef2dcb6c0f6aa27d517d27ce1129389 to your computer and use it in GitHub Desktop.
Private godoc.org docker container
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
version: '2' | |
services: | |
godoc: | |
image: clever/godoc-docker:b5f1b24 | |
ports: | |
- "8080:8080" | |
depends_on: | |
- redis_up | |
environment: | |
REDIS_URL: redis://redis:6379 | |
redis: | |
image: redis:alpine | |
redis_up: | |
image: alpine | |
depends_on: | |
- redis | |
command: > | |
/bin/sh -c " | |
while ! nc -z redis 6379; | |
do | |
echo sleeping; | |
sleep 1; | |
done; | |
echo Redis is up!; | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment