codetheweb / muse

🎧 a self-hosted midwestern Discord music bot that doesn't suck
MIT License
799 stars 201 forks source link

Feat: allow users to change dotenv file with env var #1040

Open JoaoCostaIFG opened 5 days ago

JoaoCostaIFG commented 5 days ago

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

See relevant dotenv doc

JoaoCostaIFG commented 5 days ago

Not sure if I should update the changelog. Please let me know.

github-actions[bot] commented 5 days ago

: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