Created
November 17, 2017 15:12
-
-
Save josepjaume/46bd8067325b6440146e13a254d1c75e to your computer and use it in GitHub Desktop.
decidim-docker
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
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: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To boot:
$ docker-compose run app bundle install $ docker-compose run app -d $ docker-compose exec app rails db:create db:migrate db:seed