Skip to content

A standalone userspace Wireguard (Boringtun) implementation built to be as small as possible.

License

Notifications You must be signed in to change notification settings

irctrakz/docker-wireguard-tiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-wireguard-tiny

A standalone userspace Wireguard (Boringtun) implementation using Alpine Linux.

Resultant container is <20MB uncompressed, and <7MB compressed!

https://hub.docker.com/r/trakz/wireguard/tags

Docker CLI:

docker run --cap-add=NET_ADMIN -p 51820:51820/udp -v "/path/to/wireguard.conf:/config/wireguard.conf" trakz/wireguard:latest

Docker Compose:

version: '3.3'
services:
    wireguard:
        container_name: wireguard
        cap_add:
            - NET_ADMIN
        ports:
            - '51820:51820/udp'
        environment:
            - IP_WG_ENV=10.22.10.0/24
        volumes:
            - '/path/to/configs/:/config'
        restart: always
        image: 'trakz/wireguard:latest'

environment is optional, defaults to 10.0.0.0/24

Check out this medium post for additional details (e.g how to setup wireguard.conf)

About

A standalone userspace Wireguard (Boringtun) implementation built to be as small as possible.

Topics

Resources

License

Stars

Watchers

Forks