Created
April 13, 2016 17:30
-
-
Save timothypage/0e9db4b0ed1ec894378febd5fd4c91ec to your computer and use it in GitHub Desktop.
Docker Compose for Asset Analyzer
This file contains 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
asset_analyzer_redis: | |
image: redis:3.0.7 | |
container_name: asset_analyzer_redis | |
net: yggdrasil | |
ports: | |
- 6379 | |
restart: "unless-stopped" | |
asset_analyzer: | |
image: tutum.co/timothypage/asset-analyzer:0.0.9 | |
container_name: asset_analyzer | |
net: yggdrasil | |
ports: | |
- 4567 | |
environment: &asset_analyzer_environment | |
- RACK_ENV=production | |
- DB_HOST=asset_analyzerdb.rds.amazonaws.com | |
- DB_DATABASE=asset_analyzer | |
- DB_USERNAME=asset_analyzer | |
- DB_PASSWORD=SuperSecure | |
- REDIS_HOST=asset_analyzer_redis | |
- "REDIS_CACHE_URL=redis://asset_analyzer_redis/1" | |
- VCE_QUERY_LIMIT=200 | |
restart: unless-stopped | |
asset_analyzer_worker: | |
image: tutum.co/timothypage/asset-analyzer:0.0.9 | |
container_name: asset_analyzer_worker | |
command: sidekiq -r ./config/initializers/sidekiq.rb -c 4 | |
net: yggdrasil | |
environment: *asset_analyzer_environment | |
restart: unless-stopped | |
asset_analyzer_scheduler: | |
image: tutum.co/timothypage/asset-analyzer:0.0.9 | |
container_name: asset_analyzer_scheduler | |
command: bundle exec ruby scheduler.rb | |
net: yggdrasil | |
environment: *asset_analyzer_environment | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment