Created
January 7, 2018 15:13
-
-
Save clm-a/792e3ee5565be5816c0491a2902b7afb to your computer and use it in GitHub Desktop.
Docker compose file for use of Rails 5.1 + NodeJS 8.x, Yarn & Webpack(er) ready
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: '2' | |
services: | |
rails: | |
image: 'clmntlxndr/rails51_webpacker' | |
links: | |
- postgres:postgres | |
volumes: | |
- $HOME/.docker_data/rails51/bundle:/usr/local/bundle | |
- $PWD:$PWD | |
working_dir: $PWD | |
ports: | |
- "3000:3000" | |
command: ./bin/rails s | |
environment: | |
- LANG=C.UTF-8 | |
postgres: | |
image: "postgres:9.6-alpine" | |
volumes: | |
- $HOME/.docker_data/pgddb/pgdata:/var/lib/postgresql/data | |
environment: | |
- POSTGRES_PASSWORD=password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment