diff --git a/Dockerfile b/Dockerfile index 58791dc..d30df73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ RUN gem install bundler RUN bundle config set without "development test" RUN bundle install --jobs=8 ADD . /app -CMD ["unicorn", "-c", "./config/unicorn.rb"] +CMD ["bundle", "exec", "unicorn", "-c", "./config/unicorn.rb"] diff --git a/docker-compose.yml b/docker-compose.yml index 2ff5f77..086b4a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: volumes: - data:/var/lib/postgresql/data web: - command: unicorn -c config/unicorn.rb + command: bundle exec unicorn -c config/unicorn.rb entrypoint: bin/wait-for-it.sh db:5432 -s -- environment: DATABASE_URL: postgres://postgres@db/postgres