Skip to content

Instantly share code, notes, and snippets.

@clm-a
Created January 7, 2018 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clm-a/792e3ee5565be5816c0491a2902b7afb to your computer and use it in GitHub Desktop.
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
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