Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: '3.5'
services:
database:
image: postgres:12-alpine
ports:
- "5432:5432"
web:
build: .
depends_on:
- database
environment:
HOST: localhost
DATABASE_HOST: database
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: ''
REDIS_URL: redis://redis:6379/0
PORT: 3000
RAILS_ENV: development
ports:
- "3000:3000"
command: bundle exec rails server --port 3000 --binding 0.0.0.0
volumes:
- .:/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.