diff --git a/containers/README.md b/containers/README.md deleted file mode 100644 index 1c14c66..0000000 --- a/containers/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# 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= -``` - -### AdGuard Home -Link: *https://github.com/AdguardTeam/AdGuardHome* - -I use AdGuard home for it's own purpose: safe browsing at DNS Level, also I'm actually using it as my local dns resolver for all my homelab - -**Variables** -You can configure everything on it's own UI accessing at port 3000 - -### Nginx proxy manager -Link: *https://nginxproxymanager.com/* -A nice and simpler nginx configuration UI for our homelab. We take advantage of our DNS sponsored by AdGuard and all servers and containers of my homelab can now be accessed by a cool domain - -**Variables** -setup at port 81, for the fist time the default credentials are: -``` -Email: admin@example.com -Password: changeme -``` - diff --git a/containers/adguard.hcl b/containers/adguard.hcl deleted file mode 100644 index 5fb2cf4..0000000 --- a/containers/adguard.hcl +++ /dev/null @@ -1,61 +0,0 @@ -job "adguard" { - - datacenters = ["dc"] - - type = "service" - - group "adguard-g" { - count = 1 - - ephemeral_disk { - size = 500 // MB - sticky = true - } - - task "adguard"{ - driver = "docker" - - config { - image = "adguard/adguardhome" - ports = ["ad-ui", "ad-dns", "ad-install"] - network_mode = "host" - volumes = [ - "${NOMAD_ALLOC_DIR}/adguard-work:/opt/adguardhome/conf", - "${NOMAD_ALLOC_DIR}/adguard-conf:/opt/adguardhome/work" - ] - - } - } - - network { - mode = "host" - - port "ad-ui" { - static = 8080 - to = 80 - } - port "ad-dns" { - static = 53 - to = 53 - } - port "ad-install" { - static = 3000 - to = 3000 - } - - } - - service { - name = "adguard" - port = "ad-ui" - provider = "nomad" - check { - type = "http" - path = "/" - interval = "20s" - timeout = "60s" - } - } - - } -} \ No newline at end of file diff --git a/containers/docker-compose.yaml b/containers/docker-compose.yaml deleted file mode 100644 index d7b9ca5..0000000 --- a/containers/docker-compose.yaml +++ /dev/null @@ -1,57 +0,0 @@ -version: "3.8" - -volumes: -#### ADGUARD - adguard-work: - adguard-conf: - -services: -## VPN - wg-easy: - environment: - # ⚠️ Change the server's hostname (clients will connect to): - - WG_HOST=home.marioverde.com.br - # ⚠️ Change the Web UI Password: - - PASSWORD - 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 - -## 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 - -## NGINX PROXY MANAGER - nginx-proxy-manager: - image: 'jc21/nginx-proxy-manager:latest' - environment: - PUID: 1000 - PGID: 1000 - restart: unless-stopped - ports: - - '80:80' # Public HTTP Port - - '443:443' # Public HTTPS Port - - '81:81' # Admin Web Port - # Add any other Stream port you want to expose \ No newline at end of file diff --git a/containers/gameserver.yaml b/containers/gameserver.yaml deleted file mode 100644 index 777c0a6..0000000 --- a/containers/gameserver.yaml +++ /dev/null @@ -1,21 +0,0 @@ -version: "3.8" -services: - csgoretake: - image: timche/csgo:sourcemod - #mem_limit: 2048m - #cpus: 2 - environment: - - CSGO_WS_API_KEY #Portainer - - CSGO_MAP="de_mirage" - - CSGO_MAX_PLAYERS=12 - - CSGO_HOSTNAME="16:9" - - CSGO_RCON_PW - - CSGO_FORCE_NETSETTINGS=true - - CSGO_GSLT - - CSGO_PARAMS="-insecure" - volumes: - - csgoretake:/home/csgo/server - network_mode: host - -volumes: - csgoretake: \ No newline at end of file diff --git a/containers/wg-easy.hcl b/containers/wg-easy.hcl deleted file mode 100644 index 69d89e5..0000000 --- a/containers/wg-easy.hcl +++ /dev/null @@ -1,51 +0,0 @@ -job "wg-easy" { - - datacenters = ["dc"] - - type = "service" - - group "wg-easy" { - count = 1 - - task "wg-easy" { - driver = "docker" - - config { - image = "weejewel/wg-easy" - ports = ["vpn", "webui"] - network_mode = "host" - volumes = [ - "${NOMAD_ALLOC_DIR}/wg-easy:/etc/wireguard", - ] - - } - } - - network { - mode = "host" - - port "vpn" { - static = 51820 - to = 51820 - } - port "webui" { - static = 51821 - to = 51821 - } - - } - - service { - name = "wgeasy" - port = "webui" - provider = "nomad" - check { - type = "http" - path = "/" - interval = "20s" - timeout = "60s" - } - } - - } -} \ No newline at end of file