Skip to content

Instantly share code, notes, and snippets.

@oriolgual
Created November 25, 2016 18:59
Show Gist options
  • Save oriolgual/8ec06fb975498a040ecd281ccd707865 to your computer and use it in GitHub Desktop.
Save oriolgual/8ec06fb975498a040ecd281ccd707865 to your computer and use it in GitHub Desktop.
version: '2'
services:
app:
command: bash -c "rm -f tmp/pids/server.pid && bundle install --path /bundle && bundle exec rails s -p 3000 -b '0.0.0.0'"
build:
context: .
args:
rails_env: development
volumes:
- .:/code
- /Users/oriol/Code/decidim:/decidim
- app-bundle:/bundle
environment:
- DATABASE_HOST=pg
- DATABASE_USERNAME=postgres
ports:
- 3000:3000
links:
- pg
- redis
pg:
image: postgres
volumes:
- pg-data:/var/lib/postgresql/data
redis:
image: redis
volumes:
- redis-data:/data
volumes:
app-bundle: {}
pg-data: {}
redis-data: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment