Skip to content

Instantly share code, notes, and snippets.

@ivalentinee
Last active August 29, 2015 14:11
Show Gist options
  • Save ivalentinee/e23645066aebab7ca9a6 to your computer and use it in GitHub Desktop.
Save ivalentinee/e23645066aebab7ca9a6 to your computer and use it in GitHub Desktop.
fig.yml for Rails application
db:
image: postgres
ports:
- "5432"
mailcatcher:
image: simpledrupalcloud/mailcatcher:latest
hostname: mailcatcher
ports:
- "1080:1080"
- "1025"
elasticsearch:
image: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
redis:
image: redis
ports:
- "6379"
web:
dns: 8.8.8.8
build: .
command: bundle exec unicorn -p 8080
volumes:
- ./:/myapp
ports:
- "8080:8080"
environment:
- REDIS_URL=redis://redis:6379/ # only for redis
links:
- db
- mailcatcher
- redis
- elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment