You need to install dip gem if you didn't
dip rails new .
docker compose build app --no-cache
default: &default
adapter: mysql2
encoding: utf8mb4
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: root
password: password
host: db
dip rails db:create
dip rails server