working on traefic and wg

This commit is contained in:
venus
2026-04-14 15:17:21 -05:00
parent 7ded14f95f
commit 4ac9e8e665
3 changed files with 22 additions and 4 deletions

View File

@@ -14,7 +14,8 @@ services:
- "./letsencrypt:/letsencrypt"
- "./traefik.yml:/etc/traefik/traefik.yml:ro" # sets the traefik.yml file as the options file for configuring proxy settings
networks:
- traefik
traefik:
- ipv4_address: 172.21.0.1
wg-easy:
image: ghcr.io/wg-easy/wg-easy
container_name: wg-easy
@@ -27,7 +28,7 @@ services:
# Optional settings
- WG_PORT=51820 # WireGuard UDP port
- WG_DEFAULT_DNS=1.1.1.1
- WG_DEFAULT_DNS=dns
- WG_ALLOWED_IPS=10.8.0.0/24
cap_add:
@@ -44,6 +45,8 @@ services:
networks:
- traefik
dfnk:
- ipv4_address: 10.8.0.2
labels:
# since by default containers are disabled, we need to enable them
@@ -56,7 +59,15 @@ services:
- "traefik.http.routers.wg-easy.tls.certresolver=basic"
# set the port which will be proxied to the address
- "traefik.http.services.wg-easy.loadbalancer.server.port=51821"
dns:
image: dockurr/dnsmasq
container_name: defenk-dns
volumes:
- ./dnsmasq.conf:/etc/dnsmasq.conf
restart: always
networks:
traefik:
external: true
dfnk:
bridge: true

9
dnsmasq.conf Normal file
View File

@@ -0,0 +1,9 @@
# forward default traffic
server=1.1.1.1
server=8.8.8.8
# Set custom addresses inside the container
address=/watch.dfnk/10.8.0.3
adrress=/sol.dfnk/10.8.0.1
address=/who.dfnk/10.h.0.1
address=/wg.dfnk/10.8.0.1

View File

@@ -23,8 +23,6 @@ entryPoints:
scheme: https
websecure:
address: ":443"
# defenk-only:
# address: ":80"
certificatesResolvers:
basic: