Skip to content

akeuk/docker-rails-6-api

Repository files navigation

Development

Rails new app (generated from railsnew.io)

rails new . --api -d postgresql --skip-spring --skip-listen --skip-action-text --skip-action-cable --skip-action-mailbox --skip-sprockets --skip-javascript --skip-turbolinks --skip-webpack-install --skip-yarn --skip-system-test

Rails server (with PostgreSQL service)

docker-compose up app

When Dockerfile-dev has changed.

docker-compose up --build app

Bash

docker-compose exec app bash

Without running app container.

docker-compose run --rm app bash

Stop all services

docker-compose down

About

Dockerized Rails 6 (API-only) Boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages