Created
October 6, 2022 20:39
-
-
Save mis101247/64d7d2e4b56188f84db767ad3b143159 to your computer and use it in GitHub Desktop.
Share this container network with the other containers with surfshark VPN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
gluetun: | |
image: qmcgaw/gluetun | |
# share this container network with the other containers | |
network_mode: service:gluetun # other container ->>>>> network_mode: "container:gluetun" | |
# container_name: gluetun | |
# line above must be uncommented to allow external containers to connect. See https://github.com/qdm12/gluetun/wiki/Connect-a-container-to-gluetun#external-container-to-gluetun | |
cap_add: | |
- NET_ADMIN | |
devices: | |
- /dev/net/tun:/dev/net/tun | |
ports: | |
- 8888:8888/tcp # HTTP proxy | |
- 8388:8388/tcp # Shadowsocks | |
- 8388:8388/udp # Shadowsocks | |
volumes: | |
- /yourPath:/gluetun # Change "yourPath" to your docker-compose.yml folder path | |
environment: | |
# See https://github.com/qdm12/gluetun/wiki | |
- VPN_SERVICE_PROVIDER=surfshark | |
- VPN_TYPE=wireguard | |
# https://my.surfshark.com/vpn/manual-setup/main/wireguard | |
# Wireguard: | |
- WIREGUARD_PRIVATE_KEY= # your WIREGUARD_PRIVATE_KEY | |
- WIREGUARD_ADDRESSES= # your WIREGUARD_ADDRESSES | |
# Timezone for accurate log times in the Netherland | |
- TZ=Europe/Amsterdam |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment