mirror of
https://github.com/10h30/wirehole-ui.git
synced 2026-06-05 15:09:48 +09:00
Update README.md
This commit is contained in:
@@ -7,11 +7,58 @@
|
||||
|
||||
To get started all you need to do is clone the repository and spin up the containers.
|
||||
|
||||
### Quickstart
|
||||
```bash
|
||||
git clone https://github.com/IAmStoxe/wirehole.git
|
||||
cd wirehole
|
||||
docker-compose up
|
||||
```
|
||||
### Full Setup
|
||||
```bash
|
||||
#!/bin/bash
|
||||
|
||||
# Prereqs and docker
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install -yqq \
|
||||
curl \
|
||||
git \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
gnupg-agent \
|
||||
software-properties-common
|
||||
|
||||
# Install Docker repository and keys
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
|
||||
sudo add-apt-repository \
|
||||
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||
$(lsb_release -cs) \
|
||||
stable" &&
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install docker-ce docker-ce-cli containerd.io -yqq
|
||||
|
||||
# docker-compose
|
||||
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose &&
|
||||
sudo chmod +x /usr/local/bin/docker-compose &&
|
||||
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
|
||||
|
||||
# Fix dns issues
|
||||
sudo systemctl stop systemd-resolved
|
||||
|
||||
sudo sed -i 's/#DNSStubListener=yes/DNSStubListener=no/g' /etc/systemd/resolved.conf &&
|
||||
sudo sed -i 's/^#DNS=.*/DNS=1.1.1.1/g' /etc/systemd/resolved.conf &&
|
||||
sudo systemctl stop systemd-resolved &&
|
||||
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
||||
|
||||
sudo systemctl start systemd-resolved
|
||||
|
||||
# wirehole
|
||||
git clone https://github.com/IAmStoxe/wirehole.git &&
|
||||
cd wirehole &&
|
||||
docker-compose up
|
||||
|
||||
```
|
||||
|
||||
|
||||
Within the output of the terminal will be QR codes you can (if you choose) to setup it WireGuard on your phone.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user