Matteo Del Monte
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
36 additions and
1 deletions
-
README.md
|
|
|
@ -68,6 +68,41 @@ $ docker run -d \ |
|
|
|
|
|
|
|
The Web UI will now be available on `http://0.0.0.0:51821`. |
|
|
|
|
|
|
|
#### Docker Compose example |
|
|
|
##### - Compose |
|
|
|
|
|
|
|
<pre> |
|
|
|
version: '3.8' |
|
|
|
|
|
|
|
services: |
|
|
|
wireguard: |
|
|
|
container_name: wg-easy |
|
|
|
image: weejewel/wg-easy |
|
|
|
volumes: |
|
|
|
- /wireguard:/etc/wireguard |
|
|
|
env_file: |
|
|
|
- /wireguard/wireguard.env |
|
|
|
ports: |
|
|
|
- '61200:51820/udp' |
|
|
|
- '80:51821/tcp' |
|
|
|
cap_add: |
|
|
|
- NET_ADMIN |
|
|
|
- SYS_MODULE |
|
|
|
sysctls: |
|
|
|
- net.ipv4.ip_forward=1 |
|
|
|
- net.ipv4.conf.all.src_valid_mark=1 |
|
|
|
restart: unless-stopped |
|
|
|
</pre> |
|
|
|
|
|
|
|
##### - Env file |
|
|
|
<pre> |
|
|
|
WG_HOST=vpn.myserver.com` |
|
|
|
WG_PORT=61820 |
|
|
|
WG_DEFAULT_DNS=1.1.1.1, 1.0.0.1 |
|
|
|
WG_ALLOWED_IPS=0.0.0.0/0, ::/0 |
|
|
|
PASSWORD=foobar123 |
|
|
|
</pre> |
|
|
|
|
|
|
|
> 💡 Your configuration files will be saved in `~/.wg-easy` |
|
|
|
|
|
|
|
### 3. Sponsor |
|
|
|
@ -103,4 +138,4 @@ docker rm wg-easy |
|
|
|
docker pull weejewel/wg-easy |
|
|
|
``` |
|
|
|
|
|
|
|
And then run the `docker run -d \ ...` command above again. |
|
|
|
And then run the `docker run -d \ ...` command above again. |
|
|
|
|