Skip to content

vchkhr/rails-docker-template

Repository files navigation

Dockerized Rails 7 App

Based on Awesome Compose.

  • Ruby 3.2.2.
  • Ruby on Rails 7.0.5 (http://localhost:3000/).
  • PostgreSQL (localhost:5432).
  • Devise authentication.
  • MailCatcher (http://localhost:1080/).
  • Bootstrap styles and icons.
  • Navbar, styled auth pages, demo home, and article pages.

You can rename the application by replacing "myapp" manually.

Start the app

docker compose build
docker compose up

Stop the app

docker compose down

Make changes in the app

After running the app, you can execute commands in the app container:

docker exec -it <container name> bash

Replace <container name> with the actual container name (run docker ps to get the name).

Rebuild the app

If you make changes to the Gemfile or the Compose file to try out some different configurations, you need to rebuild. Some changes require only docker compose up --build, but a full rebuild requires a re-run of docker compose run web bundle install to sync changes in the Gemfile.lock to the host, followed by docker compose up --build.

About

Dockerized Rails 7 App

Resources

Stars

Watchers

Forks