Feat: allow users to change dotenv file with env var
This facilitates the usage of docker secrets for the keys/tokens.
For example on a docker-compose.yml file:
muse:
image: codetheweb/muse:latest
container_name: muse
secrets:
- muse_env
environment:
- ENV_FILE=/run/secrets/muse_env
restart: unless-stopped
secrets:
muse_env:
file: /usr/local/etc/muse_env
- [ ] I updated the changelog
Not sure if I should update the changelog. Please let me know.
:package: A new release has been made for this pull request.
To play around with this PR, pull codetheweb/muse:pr-1040 or codetheweb/muse:3d7a85843fc4c8028ac87a0e5df98c477f2fffc1.
Images are available for x86_64 and ARM64.
Latest commit: 3d7a85843fc4c8028ac87a0e5df98c477f2fffc1
Cool!
- Let's default
ENV_FILEto/configin the Dockerfile so there's a sensible default. - We should also document this in the README.
Thank you!
@JoaoCostaIFG Do you still want this PR to be processed?
@JoaoCostaIFG Do you still want this PR to be processed?
I haven't been using discord, so I completely forgot about this PR. Sorry about that. I just pushed the requested changes. Let me know if there's anything else that needs work.
:package: :robot: A new release has been made for this pull request.
To play around with this PR, pull ghcr.io/museofficial/muse:pr-1040.
Images are available for x86_64 and ARM64.
Latest commit: d5cec6048be79f395688f67e799f1385779cbe69
LGTM
🚀 Released in Release v2.9.5.