Docker Nextcloud 22.0 Error solved: Docker-Compose for Nextcloud 22.0

Juli 26, 2021

Don't use latest MariaDB version 

Just use > MariaDB 10.6

version: '2' 

services:

db: image: mariadb:10.5 command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW restart: always volumes:
- ./db:/var/lib/mysql environment:
- MYSQL_ROOT_PASSWORD=test123
- MYSQL_PASSWORD=test123
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app: image: nextcloud ports:
- 1234:80 links: - db volumes: - ./nextcloud:/var/www/html - ./nextcloud/php.ini:/usr/local/etc/php/php.ini"
restart: always

pull images

sudo docker-compose pull

Disable maintenance mode

docker-compose exec --user www-data app php occ maintenance:mode --off