working on traefic and wg
This commit is contained in:
15
compose.yml
15
compose.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user