Skip to content

Instantly share code, notes, and snippets.

@josepjaume
Created November 17, 2017 15:12
Show Gist options
  • Save josepjaume/46bd8067325b6440146e13a254d1c75e to your computer and use it in GitHub Desktop.
Save josepjaume/46bd8067325b6440146e13a254d1c75e to your computer and use it in GitHub Desktop.
decidim-docker
version: '3'
services:
app:
image: decidim/decidim:0.7.2
working_dir: /app
volumes:
- .:/app
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
environment:
- PORT=3000
- DATABASE_HOST=pg
- DATABASE_USERNAME=postgres
- RAILS_ENV=development
ports:
- 3000:3000
links:
- pg
command: bundle exec puma
pg:
image: postgres
volumes:
- pg-data:/var/lib/postgresql/data
volumes:
node_modules: {}
bundle: {}
pg-data: {}
@josepjaume
Copy link
Author

To boot:

$ docker-compose run app bundle install
$ docker-compose run app -d
$ docker-compose exec app rails db:create db:migrate db:seed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment