Environment variables

It is possible to load an environment variable in the docker-compose.yml and use it within the system like those defined in the Variables and secrets plugin?

I try this, but don’t work.

services:
app:
image: nocobase/nocobase:latest
environment:
- NEW_VAR=VALUE

What is your use case? Typically, only environment variables used in the code should be set here.

I use a ip_address and port address env variable for some URL

And I want to update from .env instead of “Variables and Secrets” becose the variables change in diferents dev and prod enviroments

Currently, variables defined in .env can’t be used directly in the app configuration. For cross-environment migration, you can manually manage the data in the environmentVariables table. In the commercial edition, we also provide a migration management tool to handle differences in environment variables.

Thank you very much for your response. You’re very kind to help me.

Unfortunately, I can’t afford the commercial version. I hope to have it in the future.

Again, thank you very much for taking the time to help me.