as long you are not doing this for education I would recommend you start with a more advanced guide like
- Nextcloud AiO
- docker-compose-setup-with-notify-push-2024
- Nextcloud docker compose setup with Caddy (2024)
… and PLEASE use code tags e.g. </>
button above