1) Find the docker compose file.
2) Change the expose line to make it specific 10.0.10.1:9000 instead of the default 0.0.0.0:9000 .
3) Connect via wireguard.
(Answers the "security" point a sister comment brought up too)
Yes of course. The first time you try to get wireguard working you will not get it to ping the other side right away. It is a process. The next few times it'll be much quicker. Then it will keep running forever. Or maybe mine isn't working but I never noticed.
I had this wireguard setup in place long before I even ran my first docker container. It's all building on top of things already there.
1) Find the docker compose file. 2) Change the expose line to make it specific 10.0.10.1:9000 instead of the default 0.0.0.0:9000 . 3) Connect via wireguard.
(Answers the "security" point a sister comment brought up too)