From a5022ac91d854c5c93bed8f550d177305cfdc573 Mon Sep 17 00:00:00 2001 From: Luigi Oliveira Date: Tue, 13 Jun 2023 22:39:31 -0300 Subject: [PATCH] feat: Adguard first deployment --- containers/README.md | 11 +++++++---- containers/docker-compose.yaml | 22 +++++++++++++++++++++- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/containers/README.md b/containers/README.md index 8b4aa89..5d84a0c 100644 --- a/containers/README.md +++ b/containers/README.md @@ -5,13 +5,16 @@ This folder contain the docker declaration for my homelab changes using portaine ## Services Here the list of the services that I'm running at my homelab: -### VPN with wireguard -Link: *https://github.com/ngoduykhanh/wireguard-ui* +### wg-easy +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. - 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** -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 \ No newline at end of file +There's some sensitive variables, we should configure directly in portainer these: +```yaml +- PASSWORD= +``` \ No newline at end of file diff --git a/containers/docker-compose.yaml b/containers/docker-compose.yaml index e60dcd4..e14cf12 100644 --- a/containers/docker-compose.yaml +++ b/containers/docker-compose.yaml @@ -1,6 +1,12 @@ version: "3.8" +volumes: +#### ADGUARD + adguard-work: + adguard-conf: + services: +## VPN wg-easy: environment: # ⚠️ Change the server's hostname (clients will connect to): @@ -21,4 +27,18 @@ services: - SYS_MODULE sysctls: - net.ipv4.ip_forward=1 - - net.ipv4.conf.all.src_valid_mark=1 \ No newline at end of file + - 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 \ No newline at end of file