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.
docker compose build
docker compose up
docker compose down
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).
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
.