Skip to content

Instantly share code, notes, and snippets.

@kevinrobinson
Last active November 13, 2015 21:05
Show Gist options
  • Save kevinrobinson/15c6b5a89aa480d1c832 to your computer and use it in GitHub Desktop.
Save kevinrobinson/15c6b5a89aa480d1c832 to your computer and use it in GitHub Desktop.
# This is based off https://docs.docker.com/compose/rails/
rails:
build: .
volumes:
- .:/mnt/somerville-teacher-tool
working_dir: /mnt/somerville-teacher-tool
environment:
DATABASE_URL: postgresql://postgres@postgres # overrides hostname and username
ports:
- "3000:3000"
links:
- postgres
command: bundle exec rails s -p 3000 -b '0.0.0.0'
postgres:
image: postgres
ports:
- "5432:5432"
volumes:
- /var/lib/postgresql/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment