Set config parts via environment variables before starting the containers


I would like to set some config.php variables before I’m starting all the instances with docker-compose.
I found this solution here but it doesn’t really work for me:

I’m trying to set the variable “overwriteprotocol” to “https”.
Atm my .env file looks like that:


But when I start the containers there is still no overwriteprotocol variable in my config.php.

What is my issue here? I really hope someone could help me with this.

Best regards,

1 Like

I am also experiencing this problem deploying Nextcloud v18.0.0.10 using Kubernetes.

What’s the status on this?