feat: add wg-easy container

This commit is contained in:
Luigi Oliveira 2023-06-13 01:24:19 -03:00
parent e166474ae0
commit 0dabf129db
2 changed files with 43 additions and 0 deletions

20
containers/README.md Normal file
View file

@ -0,0 +1,20 @@
# Containers
This folder contain the docker declaration for my homelab changes using portainer, when using Stack option at portainer, you can import a docker compose file from a git repository source and automatically pull changes from the git source.
**TODO**: Explain how to setup this process
## Services
Here the list of the services that I'm running at my homelab:
### wg-easy
Link: *https://github.com/wg-easy/wg-easy/*
I use wg-easy for managing the wireguard environment at my homelab, I want a VPN for some reasons:
- Access my homelab from outside my LAN, so if I need to manage any service I can easily do without the need to expose everything for the internet.
- Maybe If i'm in a insecure network, proxy my home internet with VPN for secure access
- Sometimes my friend have trouble to play an online game because of routing problems from their ISPs, I can proxy my connection to them aswell.
**Variables**
There's some sensitive variables, we should configure directly in portainer these:
```yaml
- PASSWORD=<insert password to access the admin painel>
```

View file

@ -0,0 +1,23 @@
version: "3.8"
services:
wg-easy:
environment:
- WG_HOST=home.marioverde.com.br
# ⚠️ Change this in Portainer configs, see README
- PASSWORD=foobar123
image: weejewel/wg-easy
container_name: wg-easy
hostname: wg-easy
volumes:
- ~/.wg-easy:/etc/wireguard
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1