#Plex Image Cleanup - .env is not being read, neither is environment variables when set in docker com
1 messages · Page 1 of 1 (latest)
Welcome @long nymph!
Someone from <@&938443185347244033> will assist when they're available.
Including the meta.log from the beginning is a huge help, type !logs for more information.
You can press the "Close Post" button above or type /close at any time to close this post.
PLEX_URL=URL:XXXX
PLEX_TOKEN=XXXX
PLEX_PATH=/plex-path
MODE=report
SCHEDULE=SCHEDULE="05:00|weekly(sunday)"
DISCORD=XXXX
TIMEOUT=600
SLEEP=60
IGNORE_RUNNING=False
LOCAL_DB=False
USE_EXISTING=False
PHOTO_TRANSCODER=False
EMPTY_TRASH=False
CLEAN_BUNDLES=False
OPTIMIZE_DB=False
TRACE=True
LOG_REQUESTS=True
I have my plex appdata set to /plex-path (works with all other apps including PMM)
Seems like a volume mapping issue
What are you naming you .env file? It needs to be named .env
- ${DOCKERCONFDIR}/plex-image-cleanup:/config:rw
- ${DOCKERCONFDIR}/plex:/plex-path:rw
Just like all my other 10~ containers... docker user also has proper permissions to the folders
Yep! It's just .env, just like my .env for my compose. It's in appdata/plex-image-cleanup
Logs are being output just fine
So, I did a docker run...same paths... it worked so I stopped it and ran another compose (just just start the other container again) and now its working. Which is nuts because I also added the environment variables to my compose last night and that didnt work in conjunction with the .env being in /config... 😠 . Since the .env file works, I'm removing the environment variables from my compose and going to just rock with it rofl.
So it’s working now?
Yeah, I guess if it pops up, could be something with the build but recommend doing a run while .env exists before compose