Maybe you could help me.
I took my old docker compose config from nextcloud and pasted it into the new docker compose addon. Since there can actually also be worked with a Dockerfile I have also created my Dockerfile and added to the config. unfortunately, I can no longer create the containers since then. The error is displayed every time in the configuration of my MariaDB, which I had't changed for this. So I created a separate docker compose for the MAriadb and tried to start only this container. Unfortunately I get the same error every time. It does not matter if I exchange rows. It is every time the line 7 or 12. I have my Config also extra again with the official Config of the Nextcloud compared and see here also no differences. What am I doing wrong?
Thanks for your help.
P.S.: I use other containers, which are not affected by this problem.
MY config:
version:'2'
services:
db:
image: mariadb:10.6
container_name: mariadb_10_6_
restart:always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- /DockerconfigundDateien/mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=*******
- MYSQL_PASSWORD=******
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=user
ports:
- 3306:3306
Alles anzeigen
The response:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker-compose --file '/DockerconfigundDateien/Compose/MariaDB/MariaDB.yml' --env-file '/DockerconfigundDateien/Compose/MariaDB/MariaDB.env' up -d 2>&1': parsing /DockerconfigundDateien/Compose/MariaDB/MariaDB.yml: yaml: line 7: mapping values are not allowed in this context
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker-compose --file '/DockerconfigundDateien/Compose/MariaDB/MariaDB.yml' --env-file '/DockerconfigundDateien/Compose/MariaDB/MariaDB.env' up -d 2>&1': parsing /DockerconfigundDateien/Compose/MariaDB/MariaDB.yml: yaml: line 7: mapping values are not allowed in this context in /usr/share/openmediavault/engined/rpc/compose.inc:566
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(619): OMVRpcServiceCompose->{closure}('/tmp/bgstatusnk...', '/tmp/bgoutputMC...')
#1 /usr/share/openmediavault/engined/rpc/compose.inc(569): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: OMVRpcServiceCompose->doCommand(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doCommand', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Compose', 'doCommand', Array, Array, 1)
#6 {main}
Alles anzeigen
The Solution was:
I found your autocompose tool and it worked great.
So now i have everithing running with this config if someone is interestet:
Dockerfile
DockerAlles anzeigenFROM nextcloud:apache RUN set -ex; \ \ apt-get update; \ apt-get install -y --no-install-recommends \ ffmpeg \ ghostscript \ libmagickcore-6.q16-6-extra \ procps \ smbclient \ supervisor \ # libreoffice \ ; \ rm -rf /var/lib/apt/lists/* RUN set -ex; \ \ savedAptMark="$(apt-mark showmanual)"; \ \ apt-get update; \ apt-get install -y --no-install-recommends \ libbz2-dev \ libc-client-dev \ libkrb5-dev \ libsmbclient-dev \ ; \ \ docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \ docker-php-ext-install \ bz2 \ imap \ ; \ pecl install smbclient; \ docker-php-ext-enable smbclient; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \ | awk '/=>/ { print $3 }' \ | sort -u \ | xargs -r dpkg-query -S \ | cut -d: -f1 \ | sort -u \ | xargs -rt apt-mark manual; \ \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ rm -rf /var/lib/apt/lists/* RUN mkdir -p \ /var/log/supervisord \ /var/run/supervisord \ ; COPY supervisord.conf / ENV NEXTCLOUD_UPDATE=1 CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
Docker compose import made the Version to 3.6 :
CodeAlles anzeigenversion: "3.6" services: mariadb: container_name: "mariadb" image: "mariadb:10.6" command: - "--transaction-isolation=READ-COMMITTED" - "--log-bin=binlog" - "--binlog-format=ROW" environment: - "MYSQL_DATABASE=nextcloud" - "MYSQL_USER=user" - "MYSQL_ROOT_PASSWORD=******" - "MYSQL_PASSWORD=******" ports: - "3306:3306/tcp" restart: "always" volumes: - "/DockerconfigundDateien/mariadb:/var/lib/mysql" networks: - "nextcloudmitwiki_default" adminer: container_name: "adminer_datenbank_viewer" image: "adminer" restart: "always" ports: - "8888:8080" networks: - "nextcloudmitwiki_default" depends_on: - "mariadb" wiki_js: container_name: "wiki_js" environment: - "DB_TYPE=mariadb" - "DB_HOST=db" - "DB_PORT=3306" - "DB_USER=user" - "DB_PASS=****" - "DB_NAME=wiki" image: "ghcr.io/requarks/wiki:2" ports: - "89:3000/tcp" restart: "unless-stopped" volumes: - "/DockerconfigundDateien/WikiJS:/wiki/data/content" networks: - "nextcloudmitwiki_default" depends_on: - "mariadb" nextcloud: build: context: "/DockerconfigundDateien/Compose/Nextcloudfile/" dockerfile: "Dockerfile" container_name: "nextcloud" environment: - "MYSQL_USER=user" - "MYSQL_HOST=db" - "MYSQL_PASSWORD=***" - "MYSQL_DATABASE=nextcloud" networks: - "nextcloudmitwiki_default" ports: - "870:80/tcp" restart: "always" volumes: - "/DockerconfigundDateien/nextcloud:/var/www/html" depends_on: - "mariadb" networks: nextcloudmitwiki_default: external: true name: "nextcloudmitwiki_default"