Nextcloud opens Setup page on every server restart

Every time i restart the server nextcloud opens the setup page and i have to do everything from the beginning. I use docker with portainer and Ubuntu Server 22.04
Docker-compose:
version: β€˜3’

volumes:
nextcloud:
nextcloud-db:

services:
nextcloud-db:
image: mariadb
restart: always
volumes:
- /NextCloud-Install/database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud

nextcloud:
image: nextcloud
restart: always
ports:
- 8080:80
links:
- nextcloud-db
volumes:
- /NextCloud-Install/NC-data:/var/www/html
- /media/raid1/NC:/var/www/html/data
environment:
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=nextcloud-db

edit: if i put in the same things again there is a text: β€œThe user is invalid because files from this user already exist”

hi @Timehhh welcome to the forum :handshake:

Please use the search - lot of issues have been discussed already

I think your issue results from missing config persistence so you configuration is lost when teh container is destroyed. please review volume mounts from the docs: