Created
October 10, 2022 12:49
-
-
Save mrjosh/18c0403ddd8c1bf8f4e1eeedae31fe78 to your computer and use it in GitHub Desktop.
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
mullvad_wireguard: | |
image: ghcr.io/mrjosh/wireguard:latest | |
container_name: mullvad_wireguard | |
ports: | |
- 13232:13232/udp # wireguard wg0 | |
- 9586:9586/tcp # wireguard exporter | |
- 9091:9091/tcp # wireguard tun0 network metrics | |
- 3000:3000/tcp # grafana | |
- 50364:50364 # outline-shadowbox | |
- 31444:31444/tcp # outline-manager | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Asia/Tehran | |
cap_add: | |
- NET_ADMIN | |
- SYS_MODULE | |
volumes: | |
- $PWD/mullvad.conf:/config/tun0.conf | |
sysctls: | |
- net.ipv4.conf.all.src_valid_mark=1 | |
networks: | |
- oneBridge | |
wireguard: | |
image: linuxserver/wireguard:latest | |
container_name: wireguard | |
network_mode: service:mullvad_wireguard | |
cap_add: | |
- NET_ADMIN | |
- SYS_MODULE | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Asia/Tehran #set correct timezone | |
- SERVERPORT=13232 #optional | |
- PEERS=40 #optional | |
- PEERDNS=auto #optional | |
- ALLOWEDIPS=0.0.0.0/0 #Peer addresses allowed | |
- INTERNAL_SUBNET=10.13.13.0/24 #Subnet used in VPN tunnel | |
- SERVERURL= #Wireguard VPN server address | |
volumes: | |
- $PWD/config:/config | |
sysctls: | |
- net.ipv4.conf.all.src_valid_mark=1 | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment