Have you tried LSIO image?
This is my docker-compose:
`version: "3" services: nextcloud: image: lscr.io/linuxserver/nextcloud:latest container_name: nextcloud environment: - PUID=1000 - PGID=100 - TZ=Europe/Zagreb
volumes:
- /home/config/nextcloud:/config
- /srv/dev-disk-by-uuid-22495ee1-7931-4383-8ba5-7e8fb0f463f9/data500/data/nextcloud:/data
ports:
- 4443:443
restart: unless-stopped`
I can open it at https://192.168.0.40:4443
I am using nginx reverse proxy, but Im quite sure its working without one out of the box