Hi,
Instead of following line in my docker compose:
- "traefik.http.middlewares.traefik_auth.basicauth.users=jan:$$apr1$$wg3z7sQp$$BXXXXXXXXXXXXXX7up/"
I tried to specify it using an environment variable as follows:
1/ in my .env
I have specified the following:
BASIC_AUTH_USER_PASSWORD=jan:$$apr1$$wg3z7sQp$$BXXXXXXXXXXXXXX7up/
2/ and the above line in my docker compose file have been changed into:
- "traefik.http.middlewares.whoami_auth.basicauth.users=${BASIC_AUTH_USER_PASSWORD}"
... but this is not working.
How can I fix this ? Sharing a working example would help also.
Note that I am sure that my .env
is properly processed when uploading the docker compose as it contains an environment variable that is properly used by my node-red docker container.