Hi,
i try to create a docker Container Stack:
volumes:
nextcloud:
db:
services:
db:
image: mariadb:latest
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nextcloud:
image: nextcloud_c-lab
restart: always
ports:
- 12002:80
working_dir: /var/www/html
links:
- db
volumes:
- /opt/portainer/nextcloud/data:/var/www/html/data:rw
- /opt/portainer/nextcloud/config:/var/www/html/config:rw
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
If i remove this bindings:
- /opt/portainer/nextcloud/data:/var/www/html/data:rw
- /opt/portainer/nextcloud/config:/var/www/html/config:rw
in the config Folder all is fine and the Login is correct:
If o use the Bindings the cloud dont use the envoirnments:
root@net:/opt/portainer/nextcloud/config# ls -ltra
insgesamt 12
drwsrwsrwt 4 root root 4096 25. Aug 09:38 …
-rwxrwxrwt 1 www-data root 0 25. Aug 10:32 CAN_INSTALL
-rw-r----- 1 www-data root 61 25. Aug 11:46 config.php
drwsrwsrwt 2 www-data root 4096 25. Aug 11:46 .
The Binding Folders are full accessable:
drwsrwsrwt 2 www-data root 4096 25. Aug 11:46 config
drwsrwsrwt 2 www-data root 4096 25. Aug 12:09 data
root@net:/opt/portainer/nextcloud#
Why it doesnt work?
Thanks