feat: Adguard first deployment

This commit is contained in:
Luigi Oliveira 2023-06-13 22:39:31 -03:00
parent a55f3bd6f0
commit a5022ac91d
2 changed files with 28 additions and 5 deletions

View file

@ -5,13 +5,16 @@ This folder contain the docker declaration for my homelab changes using portaine
## Services ## Services
Here the list of the services that I'm running at my homelab: Here the list of the services that I'm running at my homelab:
### VPN with wireguard ### wg-easy
Link: *https://github.com/ngoduykhanh/wireguard-ui* Link: *https://github.com/wg-easy/wg-easy/*
I use wireguard with wireguard-ui for managing the wireguard environment at my homelab, I want a VPN for some reasons: 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. - 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 - 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. - 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** **Variables**
All the variables can be change in the wireguard-ui later, so for now we start the container with admin/admin credentials for first time setup There's some sensitive variables, we should configure directly in portainer these:
```yaml
- PASSWORD=<insert password to access the admin painel>
```

View file

@ -1,6 +1,12 @@
version: "3.8" version: "3.8"
volumes:
#### ADGUARD
adguard-work:
adguard-conf:
services: services:
## VPN
wg-easy: wg-easy:
environment: environment:
# ⚠️ Change the server's hostname (clients will connect to): # ⚠️ Change the server's hostname (clients will connect to):
@ -22,3 +28,17 @@ services:
sysctls: sysctls:
- net.ipv4.ip_forward=1 - net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1 - net.ipv4.conf.all.src_valid_mark=1
## ADGUARD
adguardhome:
container_name: adguardhome
image: adguard/adguardhome
restart: unless-stopped
network_mode: 'host'
ports:
- 53:53/udp
- 8080:80/tcp
- 3000:3000/tcp
volumes:
- adguard-work:/opt/adguardhome/conf
- adguard-conf:/opt/adguardhome/work