Closed crazytimmy closed 1 week ago
I just tried passing the environment variables directly in the docker-compose.yml file and that seems to have worked as expected.
Adding links that I've read regarding secrets: https://github.com/mrlt8/docker-wyze-bridge?tab=readme-ov-file#whats-changed-in-v296 https://github.com/mrlt8/docker-wyze-bridge/issues/1244#issue-2332599607
Your names are wrong. Try something like:
services:
wyze-bridge:
image: mrlt8/wyze-bridge:latest
container_name: wyze-bridge
environment:
- ROTATE_DOOR=True
- WB_AUTH=False
- NET_MODE=LAN
- SUBSTREAM=True
secrets:
- WYZE_EMAIL
- WYZE_PASSWORD
- API_ID
- API_KEY
restart: unless-stopped
secrets:
WYZE_EMAIL:
file: /home/<USER>/secrets/wyze_email.txt
WYZE_PASSWORD:
file: /home/<USER>/secrets/wyze_password.txt
API_ID:
file: /home/<USER>/secrets/wyze_api_id.txt
API_KEY:
file: /home/<USER>/secrets/wyze_api_key.txt
Thanks for the reply, that was my issue.
Previously I've been entering my Wyze credentials & API key manually on login after starting container.
I've just tried to use docker secrets for WYZE_EMAIL, WYZE_PASSWORD, API_ID, API_KEY but they don't seem to be working.
Here is the log after starting container:
Here is the relevant part of my docker-compose.yml:
Host secrets directory:
Container secrets directory:
Contents of each secret print out correctly.
Environment (if applicable)
Any thoughts on why this doesn't seem to work?