changed proxy to traefik and adding wg-easy vpn
This commit is contained in:
1
blog
Submodule
1
blog
Submodule
Submodule blog added at 8efe0b7836
@@ -14,8 +14,8 @@ services:
|
|||||||
- "./letsencrypt:/letsencrypt"
|
- "./letsencrypt:/letsencrypt"
|
||||||
- "./traefik.yml:/etc/traefik/traefik.yml:ro"
|
- "./traefik.yml:/etc/traefik/traefik.yml:ro"
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- traefik
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ networks:
|
|||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
external: false
|
external: false
|
||||||
proxy:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@@ -15,7 +15,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
- gitea
|
||||||
- proxy
|
- traefik
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/:/data
|
- ./data/:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
@@ -30,4 +30,4 @@ services:
|
|||||||
# Explicitly tell Traefik to send the web traffic to internal port 3000
|
# Explicitly tell Traefik to send the web traffic to internal port 3000
|
||||||
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||||
# Tell Traefik to exclusively use the 'proxy' network to route traffic
|
# Tell Traefik to exclusively use the 'proxy' network to route traffic
|
||||||
- "traefik.docker.network=proxy"
|
- "traefik.docker.network=traefik"
|
||||||
|
|||||||
56
wg-easy/docker-compose.yml
Normal file
56
wg-easy/docker-compose.yml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
volumes:
|
||||||
|
etc_wireguard:
|
||||||
|
|
||||||
|
services:
|
||||||
|
wg-easy:
|
||||||
|
#environment:
|
||||||
|
# Optional:
|
||||||
|
# - PORT=51821
|
||||||
|
# - HOST=0.0.0.0
|
||||||
|
# - INSECURE=false
|
||||||
|
|
||||||
|
image: ghcr.io/wg-easy/wg-easy:15
|
||||||
|
container_name: wg-easy
|
||||||
|
networks:
|
||||||
|
wg:
|
||||||
|
ipv4_address: 10.42.42.42
|
||||||
|
ipv6_address: fdcc:ad94:bacf:61a3::2a
|
||||||
|
volumes:
|
||||||
|
- etc_wireguard:/etc/wireguard
|
||||||
|
- /lib/modules:/lib/modules:ro
|
||||||
|
ports:
|
||||||
|
- "51820:51820/udp"
|
||||||
|
- "51821:51821/tcp"
|
||||||
|
restart: unless-stopped
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYS_MODULE
|
||||||
|
# - NET_RAW # ⚠️ Uncomment if using Podman
|
||||||
|
sysctls:
|
||||||
|
- net.ipv4.ip_forward=1
|
||||||
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
|
- net.ipv6.conf.all.disable_ipv6=0
|
||||||
|
- net.ipv6.conf.all.forwarding=1
|
||||||
|
- net.ipv6.conf.default.forwarding=1
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.wg-easy.rule=Host(`wg.riverrooks.dev`)"
|
||||||
|
- "traefik.http.routers.wg-easy.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.wg-easy.service=wg-easy"
|
||||||
|
- "traefik.http.services.wg-easy.loadbalancer.server.port=51821"
|
||||||
|
- "traefik.docker.network=traefik"
|
||||||
|
networks:
|
||||||
|
traefik: {}
|
||||||
|
|
||||||
|
networks:
|
||||||
|
wg:
|
||||||
|
driver: bridge
|
||||||
|
enable_ipv6: true
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: 10.42.42.0/24
|
||||||
|
- subnet: fdcc:ad94:bacf:61a3::/64
|
||||||
|
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user