After cloning you should to create new empty repository and change remotes for new For create new application need to select what you prefer.
- Standard rails application with postgresql [1] docker compose run --no-deps web rails new . --force --database=postgresql
- Api only application [2] docker compose run --no-deps web rails new . --api --force --database=postgresql