Nextcloud Docker : issue with permission

I have a problem accessing my Nextcloud. I don’t know since when …
When I try to connect to it, I get the following message:

You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe

I don’t really understand why, when everything’s working properly and I don’t seem to have made any updates since I installed it.

Could you help me find a solution? Please

Nextcloud version (eg, 26.0.1):27.1.3
Operating system and version (eg, Ubuntu 22.04): Fedora Server 38
Apache or nginx version (eg, Apache 2.4.25): 2.4.27
PHP version (eg, 8.1): 8.2.8
Database (sqlite or MariaDB or Postgres). MariaDB
Is this the first time you’ve seen this error? yes

Docker Compose Files

version: "3.9"

########################### NETWORKS
networks:
  nextcloud:
    name: nextcloud
    driver: bridge
    ipam:
      config:
        - subnet: 192.168.110.0/24        

########################### EXTENSION FIELDS
# Keys common to some of the core services that we always to automatically restart on failure
x-common-keys-core: &common-keys-core
  networks:
    - nextcloud
  security_opt:
    - no-new-privileges:true
  restart: always

# Common environment values
x-environment: &default-tz-puid-pgid
    TZ : "Europe/Paris"
    PUID : 1000
    PGID : 1000

####################################################### SERVICES ######################################################

services:

##########################################################
#                                                        #
#                                                        #
#                        DATABASE                        #
#                                                        #                                                         
#                                                        #
##########################################################

##### MariaDB - Database #####
  mariadb:
    <<: *common-keys-core
    image: 'mariadb:latest'
    container_name: mariadb
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    environment:
        MYSQL_ROOT_PASSWORD: <<redacted by wwe>>
        MYSQL_DATABASE: database
        MYSQL_USER: mariadb-admin
        MYSQL_PASSWORD: <<redacted by wwe>>
        PUID: PUID
        PGID: PGID
        TZ: TZ
    ports: 
      - 3306:3306
    volumes:
      - ${DOCKERDIR}/appdata/mariadb/:/var/lib/mysql

##### phpmyadmin - gestionnaire de database #####
  phpmyadmin:
    <<: *common-keys-core
    depends_on:
      - mariadb
    image: phpmyadmin/phpmyadmin:latest
    container_name: phpmyadmin
    links:
      - mariadb
    environment:
        PMA_HOST: "192.168.110.3"
        PMA_PORT: 3306
        MYSQL_ROOT_PASSWORD: <<redacted by wwe>>

    ports:
      - 8081:80

##### redis - high performance database management system #####
  redis:
    <<: *common-keys-core
    image: redis:latest
    container_name: redis
    ports:
      - "6379:6379"
    volumes:
      - ${DOCKERDIR}/appdata/redis:/root/redis
      - ${DOCKERDIR}/appdata/redis/redis.conf:/usr/local/etc/redis/redis.conf
    environment:
      - REDIS_PASSWORD=my-password
      - REDIS_PORT=6379
      - REDIS_DATABASES=16


 ##### cron -  #####     
  cron:
    <<: *common-keys-core
    image: nextcloud:apache
    container_name: cron
    volumes:
      - ${DOCKERDIR}/appdata/nextcloud/:/var/www/html
    entrypoint: /cron.sh
    depends_on:
      - mariadb
      - redis

##########################################################
#                                                        #
#                                                        #
#                       FRONTENDS                        #
#                                                        #                                                         
#                                                        #
##########################################################



##### Nextcloud - Cloud auto-hégergé #####
  nextcloud:
    <<: *common-keys-core
    image: nextcloud
    container_name: nextcloud
    ports:
      - 8880:80
      - 8443:443
    links:
      - mariadb
    volumes:
      - /home/fedora/nextcloud:/var/www/html
      - /home/fedora/nextcloud/data:/var/wwww/html/data
    environment:
      MYSQL_PASSWORD: <<redacted by wwe>>
      MYSQL_DATABASE: nextcloud
      MYSQL_USER: mariadb-admin
      MYSQL_HOST: "mariadb:3306"
      REDIS_HOST: redis
      TZ : "Europe/Paris"
      PUID : 0
      PGID : 0
    depends_on:
      - mariadb
      - redis

hi @antyamok welcome to the forum :handshake:

you are missing the required support template. Please fill this form out and edit into your post. This will give us the technical info and logs needed to help you in case the machine in question in spitting out errors! Since you’ve provided zero technical details it is impossible to help you as-is. Thanks.

I hope to have write the necessary for the best understanding of my issue. Watch my fisrt post to see the upgrade.

I redacted some passwords from you post. Please consider changing them.

I have to admin compose file looks little uncommon but it should be no problem. I would recommend checking container logs docker logs nextcloud.

Additionally you reference PUID/PGID variables which are not used by community docker image AFAIK. I would double check access permissions on app and data directory - I assume your Apache runs with default UID 33 but looks you try to use some other UID (0 or 100?)