Skip to content

Instantly share code, notes, and snippets.

@edrex
Last active January 5, 2017 23:50
Show Gist options
  • Save edrex/7ef2dcb6c0f6aa27d517d27ce1129389 to your computer and use it in GitHub Desktop.
Save edrex/7ef2dcb6c0f6aa27d517d27ce1129389 to your computer and use it in GitHub Desktop.
Private godoc.org docker container
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