jordanpotter / docker-wireguard

Simple image for running a WireGuard client with a kill switch
MIT License
143 stars 37 forks source link

Change network_mode to work in compose #20

Closed mintexists closed 3 years ago

mintexists commented 3 years ago

Inside a docker-compose file, network mode should be service:wireguard not container:wireguard in order to function properly The error that lead me to this was Service 'curl' uses the network stack of container 'wireguard' which does not exist, which was fixed by using the service network mode, which is a special network mode for docker compose to reference a container inside the compose.

jordanpotter commented 3 years ago

Hey @enbyautumn, thanks for the excellent PR!

How strange... I could have sworn I tested this and it worked with container:wireguard, but I'll double-check quickly before merging.

Thanks again!

jordanpotter commented 3 years ago

Looks good! Thanks for the update! 👍