Created
November 25, 2016 18:59
-
-
Save oriolgual/8ec06fb975498a040ecd281ccd707865 to your computer and use it in GitHub Desktop.
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
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