mirror of
https://github.com/samjage/lab.git
synced 2026-06-06 04:00:42 +00:00
added stacks for backup
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
wg-easy:
|
||||
image: ghcr.io/wg-easy/wg-easy
|
||||
container_name: wireguard
|
||||
environment:
|
||||
- LANG=en
|
||||
- WG_HOST=104.230.231.144
|
||||
- PASSWORD_HASH=$$2a$$12$$BSBRXnlt8Bdcqb25qruo9.6HamIVlsmreo33ja0pHZUEghUnzPCIK
|
||||
- WG_PORT=51820
|
||||
- WG_DEFAULT_DNS=192.168.1.40
|
||||
- WG_ALLOWED_IPS=192.168.1.0/24
|
||||
volumes:
|
||||
- /opt/wireguard/data:/etc/wireguard
|
||||
ports:
|
||||
- "51820:51820/udp"
|
||||
- "41821:51821/tcp"
|
||||
restart: unless-stopped
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
sysctls:
|
||||
- net.ipv4.ip_forward=1
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
networks:
|
||||
- backbone
|
||||
|
||||
networks:
|
||||
backbone:
|
||||
external: true
|
||||
Reference in New Issue
Block a user