• 0 Posts
  • 7 Comments
Joined 1 year ago
cake
Cake day: August 7th, 2023

help-circle




  • You can already do this. You can specify an env file or use the default .env file.

    The compose file would look like this:

    environment:
          PUBLIC_RADARR_API_KEY: ${PUBLIC_RADARR_API_KEY}
          PUBLIC_RADARR_BASE_URL: ${PUBLIC_RADARR_BASE_URL}
          PUBLIC_SONARR_API_KEY: ${PUBLIC_SONARR_API_KEY}
          PUBLIC_SONARR_BASE_URL: ${PUBLIC_SONARR_BASE_URL}
          PUBLIC_JELLYFIN_API_KEY: ${PUBLIC_JELLYFIN_API_KEY}
          PUBLIC_JELLYFIN_URL: ${PUBLIC_JELLYFIN_URL}
    

    And your .env file would look like this:

    PUBLIC_RADARR_API_KEY=yourapikeyhere
    PUBLIC_RADARR_BASE_URL=http://127.0.0.1:7878
    PUBLIC_SONARR_API_KEY=yourapikeyhere
    PUBLIC_SONARR_BASE_URL=http://127.0.0.1:8989
    PUBLIC_JELLYFIN_API_KEY=yourapikeyhere
    PUBLIC_JELLYFIN_URL=http://127.0.0.1:8096
    

    This is how I do all of my compose files and then I throw .env in .gitignore and throw it into a local forgejo instance.