Hi, I am attempting to get up and running with docker desktop on windows (wsl2) and am using a docker compose file. I can get nextcloud going but I’m having an issue where the initial setup is prefixing nc_ to the db and ncappdata volumes. Everything will run, but this seems to be causing an issue for cron as the file its looking for doesn’t exist where it should.
for reference, I tried this using nextcloud:/var/www/html as is default but it also prefixed nc_ to that as well so I made a volume in docker desktop called ncappdata. It still just changes it to nc_ncappdata and doesn’t use the actual volume I made.
here is my compose:
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=imapw
- MYSQL_PASSWORD=imapw
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
redis:
image: redis:alpine
restart: always
app:
image: nextcloud
restart: always
ports:
- 8880:80
links:
- db
volumes:
- ncappdata:/var/www/html
- E:\ncdata:/var/www/html/data
environment:
- MYSQL_HOST=db
- REDIS_HOST=redis
- PHP_UPLOAD_LIMIT=12G
- PHP_MEMORY_LIMIT=768M
- MYSQL_PASSWORD=imapw
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
depends_on:
- db
- redis
cron:
image: nextcloud
restart: always
volumes:
- ncappdata:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis
volumes:
db:
ncappdata:
Also, I tried using K:\ncappdata like I did for the data directory, because it used that as is, but for some reason K:\ncappdata will not work.