Base image for local Heroku Rails development using Docker Compose.
355
This Docker image is intended to serve as a base for your Rails dev environment based on Heroku.
All you need is to use this image as your base:
FROM moonswitch/heroku-rails
Assuming you have a Rails app with the above Dockerfile in the root of the repo, you can setup a docker-compose.yaml file like this:
services:
db:
image: postgres:10
volumes:
- postgresql-data:/var/lib/postgresql/data
app:
build: .
depends_on:
- db
- cache
volumes:
- ./:/app/user
environment:
DATABASE_URL: 'postgres://postgres:@db:5432/postgres'
ports:
- 3000:3000
command: bundle exec rails server
Then just run docker-compose up and visit http://localhost:3000 in your browser.
Content type
Image
Digest
Size
375.4 MB
Last updated
over 8 years ago
docker pull moonswitch/heroku-rails