feat: Setup proper .env parsing for docker-compose
This commit is contained in:
parent
a17f3383e3
commit
e7e4e252ba
2 changed files with 15 additions and 6 deletions
13
.env.example
Normal file
13
.env.example
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# StashDB Configuration
|
||||||
|
STASHDB_URL=https://stashdb.org/graphql
|
||||||
|
STASHDB_API_KEY=your_stashdb_api_key_here
|
||||||
|
|
||||||
|
# Whisparr Configuration
|
||||||
|
WHISPARR_URL=http://whisparr:6969
|
||||||
|
WHISPARR_API_KEY=your_whisparr_api_key_here
|
||||||
|
|
||||||
|
# Jellyfin Configuration (For Authentication)
|
||||||
|
JELLYFIN_URL=http://jellyfin:8096
|
||||||
|
|
||||||
|
# Timezone
|
||||||
|
TZ=America/New_York
|
||||||
|
|
@ -12,15 +12,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
# Mounts the local ./config folder to /config in the container to persist config.json
|
# Mounts the local ./config folder to /config in the container to persist config.json
|
||||||
- ./config:/config
|
- ./config:/config
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- TZ=America/New_York
|
- TZ=America/New_York
|
||||||
- CONFIG_PATH=/config/config.json
|
- CONFIG_PATH=/config/config.json
|
||||||
# You can also pass these via environment variables if you prefer not using the JSON
|
|
||||||
# - STASHDB_URL=https://stashdb.org/graphql
|
|
||||||
# - STASHDB_API_KEY=your_key_here
|
|
||||||
# - WHISPARR_URL=http://whisparr:6969
|
|
||||||
# - WHISPARR_API_KEY=your_key_here
|
|
||||||
# - JELLYFIN_URL=http://jellyfin:8096
|
|
||||||
networks:
|
networks:
|
||||||
- mediaserver_default
|
- mediaserver_default
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue