Skip to content

Instantly share code, notes, and snippets.

@ilude
Created May 3, 2018 13:15
Show Gist options
  • Select an option

  • Save ilude/504e9bd2b694de0dd94c16c391ffd643 to your computer and use it in GitHub Desktop.

Select an option

Save ilude/504e9bd2b694de0dd94c16c391ffd643 to your computer and use it in GitHub Desktop.
RabbitMQ remote health check
sneakers:
image: npi/rms-web
container_name: rms-sneakers
command: >
/bin/bash -c "
while ! wget -sq http://rabbitmq:15672 &> /dev/null; do
echo Delaying startup till rabbitmq is up...;
sleep 1;
done;
echo Starting Sneakers...;
bundle install;
bundle exec rake sneakers:run;"
links:
- rabbitmq
environment:
- WORKERS=ActiveJob::QueueAdapters::SneakersAdapter::JobWrapper
# sources environment variable configuration for our app
env_file: config/containers/envs/production.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment