CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

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

Open LowSpecEverything opened this issue 1 year ago • 2 comments

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.

LowSpecEverything avatar Jul 13 '24 05:07 LowSpecEverything

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

alicethefemme avatar Jul 17 '24 19:07 alicethefemme

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

LowSpecEverything avatar Jul 18 '24 11:07 LowSpecEverything