Created
April 15, 2023 23:27
-
-
Save seldoff/93442cbd2ba149ab4dd1e1d7068a49bc to your computer and use it in GitHub Desktop.
Wireguard docker
This file contains hidden or 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
networks: | |
wireguard: | |
name: wireguard | |
services: | |
wireguard: | |
container_name: wireguard | |
image: lscr.io/linuxserver/wireguard:latest | |
restart: unless-stopped | |
cap_add: | |
- NET_ADMIN | |
environment: | |
- SERVERURL=34.134.63.146 | |
# - SERVERPORT=51820 | |
- PEERS=peer1 | |
networks: | |
- wireguard | |
ports: | |
- 51820:51820/udp | |
volumes: | |
- ./config:/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment