From 08b8f00b2b8e09f12837df0801cd7fa46b9bcc49 Mon Sep 17 00:00:00 2001 From: Maksym Bilenko Date: Mon, 16 May 2016 15:44:07 +0300 Subject: [PATCH] Fix docker examples Fix for reds linking instead of using ip address from default config --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e41dc06..7d7f486 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,11 @@ your organization. ```bash $ docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=mypass --name=postgres postgres $ docker run -d -p 6379:6379 --name=redis redis -$ docker run --rm --link postgres:postgres -e DATABASE_URL="postgresql://postgres:mypass@postgres/asciinema" asciinema/asciinema.org bundle exec rake db:setup +$ docker run --rm --link postgres:postgres -e DATABASE_URL="postgresql://postgres:mypass@postgres/asciinema" --link redis:redis -e REDIS_URL="redis://redis:6379" asciinema/asciinema.org bundle exec rake db:setup # starting sidekiq using the provided start_sidekiq.rb file will also start sendmail service if you don't want to use SMTP # otherwise start sidekiq by starting: bundle exec sidekiq -$ docker run -d --link postgres:postgres -e DATABASE_URL="postgresql://postgres:mypass@postgres/asciinema" asciinema/asciinema.org ruby start_sidekiq.rb -$ docker run -d --link postgres:postgres -e DATABASE_URL="postgresql://postgres:mypass@postgres/asciinema" -p 3000:3000 asciinema/asciinema.org +$ docker run -d --link postgres:postgres -e DATABASE_URL="postgresql://postgres:mypass@postgres/asciinema" --link redis:redis -e REDIS_URL="redis://redis:6379" asciinema/asciinema.org ruby start_sidekiq.rb +$ docker run -d --link postgres:postgres -e DATABASE_URL="postgresql://postgres:mypass@postgres/asciinema" --link redis:redis -e REDIS_URL="redis://redis:6379" -p 3000:3000 asciinema/asciinema.org ``` You can override the address/port that is sent in email with login token by passing HOST="host:port" environment variable when starting the web server.