Hi,
Sorry if this has been posted before, but I can’t find anything on it. Using docker compose on Ubuntu server 18.04, with MariaDB. Did a docker pull to update to the newest version and my server kept giving me 500 errors. Didn’t have anything on it yet so I just decided to wipe a clean slate and re-install. Re-install worked OK, except I keep getting file integrity errors:
- EXCEPTION
- UnexpectedValueException
- RecursiveDirectoryIterator::__construct(/var/www/html/database/mysql): failed to open dir: Permission denied
Not sure how to go about rectifying this. Here’s my compose file:
#NextCloud
nextcloud:
image: nextcloud
container_name: nextcloud
networks:
- traefik
- backend
ports:
- 8081:80
links:
- nextcloud_db
volumes:
- /etc/dockers/nextcloud:/var/www/html
restart: always
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:mywebsite
nextcloud_db:
image: mariadb
container_name: nextcloud_db
labels:
- traefik.enable=false
networks:
- traefik
- backend
restart: always
volumes:
- /etc/dockers/nextcloud/database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=myrootpassword
- MYSQL_PASSWORD=mypassword
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=myuser
Could this be a volumes issue? Any ideas would be appreciated, not really sure where to start.