I will try to provide as much detail as possible here. I created a docker compose file to use on my docker desktop in windows (with the portainer extension). I would like it to store the data in a folder that I can easily get to and backup. After deploying the compose file it lets me start the process but after I enter all the information including the SQL information I got an error saying Internal Server Error with a Request ID: 1YayrycNMIalptISGkwJ. I pulled up the logs and it showed me the following:
Exception: Not installed in /app/www/public/lib/base.php:284
Stack trace:
#0 /app/www/public/lib/base.php(715): OC::checkInstalled()
#1 /app/www/public/lib/base.php(1181): OC::init()
#2 /app/www/public/cron.php(58): require_once(‘…’)
#3 {main}
I am still learning about docker so perhaps I am making things more difficult than they need to be. I have also attached my compose file (with redactions) so there is as much information as possible.
version: "3"
services:
# Defines the Nextcloud service
nextcloud:
image: linuxserver/nextcloud:latest
container_name: nextcloud
environment:
- PUID=1000
- PGID=1000
- TZ=America/Boise
- NEXTCLOUD_UPLOAD_LIMIT=20G
- NEXTCLOUD_MAX_TIME=3000
- NEXTCLOUD_MEMORY_LIMIT=4096M
- MYSQL_HOST=nextcloud-db
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=securepassword
volumes:
- config:/config
- data:/data
ports:
- 443:443
restart: unless-stopped
networks:
- bridge
# Defines the database service for Nextcloud
nextcloud-db:
container_name: nextcloud-db
image: mysql:latest
restart: on-failure
volumes:
- sql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=securepassword
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=securepassword
networks:
- bridge
networks:
bridge:
volumes:
config:
driver: local
driver_opts:
type: none
o: bind
device: "/host_mnt/c/NextCloud/Config"
data:
driver: local
driver_opts:
type: none
o: bind
device: "/host_mnt/c/NextCloud/Data"
sql:
driver: local
driver_opts:
type: none
o: bind
device: "/host_mnt/c/NextCloud/sql"