working on traefic and wg
This commit is contained in:
15
compose.yml
15
compose.yml
@@ -14,7 +14,8 @@ services:
|
|||||||
- "./letsencrypt:/letsencrypt"
|
- "./letsencrypt:/letsencrypt"
|
||||||
- "./traefik.yml:/etc/traefik/traefik.yml:ro" # sets the traefik.yml file as the options file for configuring proxy settings
|
- "./traefik.yml:/etc/traefik/traefik.yml:ro" # sets the traefik.yml file as the options file for configuring proxy settings
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
traefik:
|
||||||
|
- ipv4_address: 172.21.0.1
|
||||||
wg-easy:
|
wg-easy:
|
||||||
image: ghcr.io/wg-easy/wg-easy
|
image: ghcr.io/wg-easy/wg-easy
|
||||||
container_name: wg-easy
|
container_name: wg-easy
|
||||||
@@ -27,7 +28,7 @@ services:
|
|||||||
|
|
||||||
# Optional settings
|
# Optional settings
|
||||||
- WG_PORT=51820 # WireGuard UDP port
|
- 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
|
- WG_ALLOWED_IPS=10.8.0.0/24
|
||||||
|
|
||||||
cap_add:
|
cap_add:
|
||||||
@@ -44,6 +45,8 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
|
dfnk:
|
||||||
|
- ipv4_address: 10.8.0.2
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
# since by default containers are disabled, we need to enable them
|
# since by default containers are disabled, we need to enable them
|
||||||
@@ -56,7 +59,15 @@ services:
|
|||||||
- "traefik.http.routers.wg-easy.tls.certresolver=basic"
|
- "traefik.http.routers.wg-easy.tls.certresolver=basic"
|
||||||
# set the port which will be proxied to the address
|
# set the port which will be proxied to the address
|
||||||
- "traefik.http.services.wg-easy.loadbalancer.server.port=51821"
|
- "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:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
dfnk:
|
||||||
|
bridge: true
|
||||||
|
|||||||
9
dnsmasq.conf
Normal file
9
dnsmasq.conf
Normal 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
|
||||||
@@ -23,8 +23,6 @@ entryPoints:
|
|||||||
scheme: https
|
scheme: https
|
||||||
websecure:
|
websecure:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
# defenk-only:
|
|
||||||
# address: ":80"
|
|
||||||
|
|
||||||
certificatesResolvers:
|
certificatesResolvers:
|
||||||
basic:
|
basic:
|
||||||
|
|||||||
Reference in New Issue
Block a user