Open dennysubke opened 1 month ago
Thank you for the elaborate issue! I'm not sure how docker compose apps are deployed with/on umbrel (I'm not familiar with umbrel). Is it possible that their service skips loading the .env
file? Usually, when you run docker compose up -d
in the directory where the .env
file is located it's values are loaded automatically. Maybe umbrel has a separate place where you configure env variables? For example on AWS you can specify it in the UI and not as a file somewhere.
I just took a quick glance at their docs where they explain how application based env variables are passed forwards, and it seems like they seem to be using APP_
-prefixed variables for app specific values:
Keep in mind that things such as GENESIS_JWT_SECRET
should be different on every individual deployment - if I'm seeing this correctly you want to submit it to an app-store, so GENESIS_JWT_SECRET
is something that should be auto-generated on each deployment. Maybe even GENESIS_CREATE_USERS
as if this app is public facing you can read the default login-credentials on GitHub.
Thank you for your comment and your quick answer. Can't I define the .env variables directly in the docker-compose file?
That should be possible, however as I said for some (GENESIS_JWT_SECRET
and GENESIS_CREATE_USERS
) it should definitely be a secret and defined somewhere else / first on actual deployment.
Support guidelines
Description
I'm encountering a recurring issue with my Docker setup where the backend service panics due to an invalid syntax error when attempting to parse an integer from an empty string. The .env file is skipped, which seems to be causing this issue. Below are the relevant details, including log excerpts, my Docker Compose configuration, and the .env file.
Error Logs:
Full Error Logfiles ...
The app is accessible. A password is also written into the .env file using gen-passwords.sh. Entering the generated password will then fail (See screenshot).
Environment
Expected behaviour
The .env file should be loaded correctly, and the backend service should not panic due to missing or invalid values.
The app will be made available via umbrel.local:3957.
Steps to reproduce
Additional info
The .env file is skipped, causing the backend service to panic with a strconv.ParseInt error.
Here is the docker-compose.yml file I used and adapted to my environment:
Attached is the corresponding .env file:
The proxy configuration in the customized nginx.conf: