No need to link to redis container when setting up db

This commit is contained in:
Marcin Kulik 2017-04-13 16:27:30 +02:00
parent 0e6b2366eb
commit e134fd7898

View File

@ -49,9 +49,7 @@ services:
db_init: db_init:
image: asciinema/asciinema.org image: asciinema/asciinema.org
links: links:
- redis
- postgres - postgres
environment: environment:
DATABASE_URL: "postgresql://postgres:mypass@postgres/asciinema" DATABASE_URL: "postgresql://postgres:mypass@postgres/asciinema"
REDIS_URL: "redis://redis:6379"
command: "bundle exec rake db:setup" command: "bundle exec rake db:setup"