Skip to content

Instantly share code, notes, and snippets.

@pablofullana
Last active April 1, 2019 14:33
Show Gist options
  • Save pablofullana/cf940e174240e497ebce9d4f8b3ed857 to your computer and use it in GitHub Desktop.
Save pablofullana/cf940e174240e497ebce9d4f8b3ed857 to your computer and use it in GitHub Desktop.
Docker | Ruby on Rails + PostgreSQL + Redis
version: '3'
services:
db:
image: postgres:latest
ports:
- "5432:5432"
redis:
image: redis:latest
ports:
- "6379:6379"
web:
stdin_open: true
tty: true
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
- redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment