Hi everyone,
I am trying to set up Nextcloud using a YAML file. Nearly everything works, but there’s one thing bugging me hard: It seems that the ENV Variables for NEXTCLOUD_ADMIN_USER and NEXTCLOUD_ADMIN_PW do not work with podman/docker secrets.
When I handover username and password inside of the YAML, everything works as expected. But if I try to use podman secrets, I will get the normal init wizard for Nextcloud to create an admin account. All other secrets are loading correctly and work (e.g. redis, mariadb etc.).
Any ideas? Please find below an excerpt for of my YAML file.
Thanks in advance.
dapari
nextcloud:
image: nextcloud
restart: always
depends_on:
- mariadb
- redis
- collabora
- traefik
environment:
- SERVER_NAME=xxxxxx
- MYSQL_PASSWORD=/run/secrets/nextcloud_db
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=/run/secrets/nextcloud_mariadb_usr
- MYSQL_HOST=mariadb
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=/run/secrets/redis_root
- NEXTCLOUD_ADMIN_USER=/run/secrets/nextcloudadmin
- NEXTCLOUD_ADMIN_PASSWORD=/run/secrets/nextcloud_admin_pw
- TRUSTED_PROXIES=xxxxx
- NEXTCLOUD_TRUSTED_DOMAINS= xxxxx
- APACHE_DISABLE_REWRITE_IP=1
- NEXTCLOUD_COLLABORA_URL=xxxxx
[...]
secrets:
nextcloud_mariadb_usr:
external: true
nextcloud_db:
external: true
mariadb_root:
external: true
redis_root:
external: true
nextcloudadmin:
external: true
nextcloud_admin_pw:
external: true