Update
This commit is contained in:
parent
6ff4c4050d
commit
caef38608d
2 changed files with 26 additions and 2 deletions
|
@ -9,6 +9,7 @@ server:
|
||||||
subnet: 192.168.1.0/24
|
subnet: 192.168.1.0/24
|
||||||
ip: 192.168.1.254
|
ip: 192.168.1.254
|
||||||
reverse_proxy_ip: 192.168.1.254
|
reverse_proxy_ip: 192.168.1.254
|
||||||
|
dns_ip: 192.168.1.254
|
||||||
port: 22
|
port: 22
|
||||||
peers: test
|
peers: test
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ version: '3'
|
||||||
services:
|
services:
|
||||||
wireguard:
|
wireguard:
|
||||||
image: lscr.io/linuxserver/wireguard:latest
|
image: lscr.io/linuxserver/wireguard:latest
|
||||||
|
restart: always
|
||||||
container_name: wireguard
|
container_name: wireguard
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
@ -14,7 +15,7 @@ services:
|
||||||
- SERVERURL=vpn.mrdev023.fr
|
- SERVERURL=vpn.mrdev023.fr
|
||||||
- SERVERPORT={{ server.vpn.port }}
|
- SERVERPORT={{ server.vpn.port }}
|
||||||
- ALLOWEDIPS={{ server.vpn.subnet }}
|
- ALLOWEDIPS={{ server.vpn.subnet }}
|
||||||
- PEERDNS=8.8.8.8
|
- PEERDNS={{ server.vpn.dns_ip }}
|
||||||
- PEERS={{ server.vpn.peers }}
|
- PEERS={{ server.vpn.peers }}
|
||||||
- LOG_CONFS=false
|
- LOG_CONFS=false
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -27,8 +28,30 @@ services:
|
||||||
ipv4_address: {{ server.vpn.ip }}
|
ipv4_address: {{ server.vpn.ip }}
|
||||||
sysctls:
|
sysctls:
|
||||||
- net.ipv4.conf.all.src_valid_mark=1
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
restart: unless-stopped
|
|
||||||
|
adguardhome:
|
||||||
|
image: adguard/adguardhome:latest
|
||||||
|
restart: always
|
||||||
|
container_name: adguardhome
|
||||||
|
volumes:
|
||||||
|
- {{ server.work_dir }}/adguardhome/work:/opt/adguardhome/work
|
||||||
|
- {{ server.work_dir }}/adguardhome/conf:/opt/adguardhome/conf
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.adguardhome-secure.entrypoints=https"
|
||||||
|
- "traefik.http.routers.adguardhome-secure.rule=Host(`dns.{{ server.domain }}`)"
|
||||||
|
- "traefik.http.routers.adguardhome-secure.tls=true"
|
||||||
|
- "traefik.http.routers.adguardhome-secure.tls.certresolver=sslResolver"
|
||||||
|
- "traefik.http.routers.adguardhome-secure.middlewares=private-network@file"
|
||||||
|
- "traefik.port=3000"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
|
networks:
|
||||||
|
proxy: {}
|
||||||
|
vpn:
|
||||||
|
ipv4_address: {{ server.vpn.dns_ip }}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
vpn:
|
vpn:
|
||||||
external: true
|
external: true
|
||||||
|
|
Loading…
Reference in a new issue