How to Push through Environmental Variables (to Python script)?

I’m trying to run a Python script, configured through environmental variables. The variables seem to be there if I drop into bash in the container (through Portainer), but aren’t available to the Python script (running directly/automatically in the container). The issue is there whether I run this under Linux docker-compose (my preferred way), or Windows. Code is here → GitHub - MinchinWeb/docker-ddns at testing

I’ve tried everything I can think of, but I guess I don’t understand how the Python script would be running without the environmental variables being forwarded…

Help appreciated

Turns out the s6 overlay I was using was “eating” the environmental variables. Setting ENV S6_KEEP_ENV=1 in my Dockerfile fixed this.