IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
25.72k stars 1.4k forks source link

Need a way to specify or upload .env files for use with docker-compose files #1903

Open LowSpecEverything opened 3 months ago

LowSpecEverything commented 3 months ago

Is your feature request related to a problem? Please describe. So, I tried to install Immich on CasaOS using the instructions for Docker Compose: https://immich.app/docs/install/docker-compose The instructions specify to download the files docker-compose.yml and example.env for use with Docker Compose: https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/example.env So I imported the docker-compose.yml file to the Import option in the Custom Install section of the App Store: image And I specified the neccesary options (web UI port, title) and clicked Install, but then I got this error: "Failed to load /tmp/casaos-compose-app-3269446966/.env: open /tmp/casaos-compose-app-3269446966/.env: no such file or directory"

The problem was, there is no way to specify a .env file to use, only individual environment variables. image Note how there is no way to upload a .env file

Also note that manually editing the docker-compose.yml file to specify a .env file in the local stoage works.

Describe the solution you'd like I would like to have the option to upload a .env file of my own for use with the docker-compose.yml file, maybe like this: image (Made by editing the page source)

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. The alternative of manually editing the docker-compose.yml file will work. However, it is tedious.

Additional context Add any other context or screenshots about the feature request here.

alicethefemme commented 3 months ago

Having the same issue too. Is there any fix, or should the compose file be modified before upload?

LowSpecEverything commented 3 months ago

Having the same issue too. Is there any fix, or should the compose file be modified before upload?

A temporary workaround I found works is uploading the env file to the server's local storage and editing the compose file to use the local env file