Skip to content

Instantly share code, notes, and snippets.

@wayanjimmy
Created February 18, 2018 12:56
Show Gist options
  • Save wayanjimmy/761cf68d2ff4e4656ce8aca85eea3119 to your computer and use it in GitHub Desktop.
Save wayanjimmy/761cf68d2ff4e4656ce8aca85eea3119 to your computer and use it in GitHub Desktop.
Rails docker compose
version: '3'
services:
db:
image: postgres
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/app
ports:
- "3000:3000"
depends_on:
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment