Closed changjiong closed 1 week ago
I think you need to rebuild it because frameworks are reading env variables once when the application is bootstrapping.
you are correct @kerimovok, this is not a bug you need to deploy or rebuild again to make the new enviroment variables take effect
I am deploying lobe-chat-database using Docker Compose in dokploy, which includes four services: lobechat, postgresql, minio_s3, and logto_auth. These services have dependencies among them; lobechat relies on secret keys generated by minio_s3 and logto. When I redeploy, all services in Docker Compose are reset, requiring the keys to be regenerated. This results in keys that are different from those in the previous environment, seemingly creating a loop.
Finally, I carefully reviewed the document and attempted file persistence. I utilized the ../file prefix within the volume. This facilitates the retention of previously generated keys, allowing for their reading upon redeployment instead of regeneration. Thank you for your insights.
To Reproduce
Current vs. Expected behavior
I want to modify the env and pass new information, but it doesn't seem to take effect.
Provide environment information
Which area(s) are affected? (Select all that apply)
Docker Compose
Additional context
No response