Created
May 3, 2018 13:15
-
-
Save ilude/504e9bd2b694de0dd94c16c391ffd643 to your computer and use it in GitHub Desktop.
RabbitMQ remote health check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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