Skip to content

Instantly share code, notes, and snippets.

@mrstebo
Created June 2, 2020 12:47
Show Gist options
  • Select an option

  • Save mrstebo/df951730d72a3e60c5ee07298a693d04 to your computer and use it in GitHub Desktop.

Select an option

Save mrstebo/df951730d72a3e60c5ee07298a693d04 to your computer and use it in GitHub Desktop.
ruby-rails-postgresql-using-docker-compose-2
version: '2'
services:
db:
image: postgres:9.4.1
ports:
- "5432:5432"
web:
build: .
command: bin/rails server --port 3000 --binding 0.0.0.0
ports:
- "3000:3000"
links:
- db
volumes:
- .:/myapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment