Hi all,
I am using the LSIO in a stack (essentially a docker-compose file) in portainer to create my nextcloud instance. My unraid box is the portainer server and I have another box running as a portainer-agent. I am using the nextcloud LSIO image on the portainer-agent instance and have successfully mounted SMB shares as volumes to that container. The container launches and runs successfully but I get an error that the config file is read only. The UID and GID match the user on the unraid NAS that has read/write permissions to the SMB share that’s mounted. Subfolders are all created and present. I have tried a lot of various permission sets over the last few days and would love some assistance.
Docker-compose:
---
version: "2.1"
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud
container_name: nextcloud
ports:
- '444:443'
environment:
- PUID=1003
- PGID=100
- TZ=America/Chicago
volumes:
- nextcloud_config:/config
- nextcloud_data:/data
restart: unless-stopped
mariadb:
image: lscr.io/linuxserver/mariadb
container_name: nextcloud_mariadb
ports:
- '3306:3306'
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_DATABASE_USER=nextcloud
- MYSQL_DATABASE_PASSWORD=
- TZ=America/Chicago
volumes:
- /etc/nextcloud_mariadb:/config
restart: unless-stopped
volumes:
nextcloud_config:
driver_opts:
type: cifs
o: "username=greenhouse,password=,rw,nobrl"
device: "//10.10.0.xxx/appdata/nextcloud"
nextcloud_data:
driver_opts:
type: cifs
o: "username=greenhouse,password=,rw,nobrl"
device: "//10.10.0.xxx/nextcloud"
Nextcloud log:
Cannot write into "config" directory!
This can usually be fixed by giving the web server write access to the config directory.
But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.
See https://docs.nextcloud.com/server/28/go.php?to=admin-config