arevindh / pihole-speedtest

Pihole Speedtest Mod
https://arevindh.github.io/pihole-speedtest/
MIT License
215 stars 22 forks source link

Docker-Compose script? #53

Closed 91ajames closed 4 years ago

91ajames commented 4 years ago

Is there a way to inject this through automation when we set-up Pi-Hole in the yml file in a Docker Container?

I would try accessing the "docker exec -it (mycontainer) bash" from script-a to run a cmd or make a script-b afterwords but it stalls, disconnecting from script-a once accessing docker exec line waiting for input by hand.

Even tried something like *"docker exec -it (mycontainer) /location/.sh"**, but so far, no such luck yet.

91ajames commented 4 years ago

pfft, im an idiot. figured it out. docker exec -it (pihole-container) bash (location in the container path from outside the container).sh

Predefine Volume: /docker/pihole:/etc/pihole

add a bash file in /docker/pihole

docker exec -it pihole bash /etc/pihole/speedtest.sh

In case any wonders out there for pre auto configuring hands free.