first commit

This commit is contained in:
2025-03-11 17:40:10 +03:00
commit 2c79a515d8
4 changed files with 104 additions and 0 deletions

38
README.md Normal file
View File

@@ -0,0 +1,38 @@
# Intro
[Yggdrasil](https://yggdrasil-network.github.io/about.html) is a new experimental compact routing scheme. It is designed to be a future-proof and decentralised alternative to the structured routing protocols commonly used today on the Internet, as well as an enabling technology for future large-scale mesh networks. The current implementation of Yggdrasil is a lightweight userspace software router which is easy to configure.
# Usage
The container generates new Yggdrasil config if empty. And automatically update available public peers in the Yggdrasil configuration file with [peers_updater](https://github.com/ygguser/peers_updater) at every start.
Here are some example snippets to help you get started creating a container.
## docker-compose
```yaml
services:
yggdrasil:
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
volumes:
- "./yggdrasil:/etc/yggdrasil"
sysctls:
- "net.ipv6.conf.all.disable_ipv6=0"
```
## docker cli
```sh
docker run \
--rm \
--cap-add "NET_ADMIN" \
--device "/dev/net/tun" \
--volume "./yggdrasil.conf:/etc/yggdrasil/yggdrasil.conf" \
--sysctl "net.ipv6.conf.all.disable_ipv6=0" \
--mac-address "52:2a:ed:47:e9:25" \
yggdrasil
```