generated from ztimson/template
Added wireguard portal
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
wg-portal:
|
||||
image: wgportal/wg-portal:v2
|
||||
container_name: opsbox-wg-portal
|
||||
restart: unless-stopped
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
ports:
|
||||
- "51820:51820/udp"
|
||||
- "${WG_PORTAL_BIND:-127.0.0.1}:${WG_PORTAL_UI_PORT:-8888}:8888/tcp"
|
||||
sysctls:
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
environment:
|
||||
WG_PORTAL_CORE_ADMIN_USER: "${WG_PORTAL_ADMIN_USER}"
|
||||
WG_PORTAL_CORE_ADMIN_PASSWORD: "${WG_PORTAL_ADMIN_PASSWORD}"
|
||||
WG_PORTAL_WEB_EXTERNAL_URL: "${WG_PORTAL_EXTERNAL_URL}"
|
||||
WG_PORTAL_WEB_SESSION_SECRET: "${WG_PORTAL_WEB_SESSION_SECRET}"
|
||||
WG_PORTAL_WEB_CSRF_SECRET: "${WG_PORTAL_WEB_CSRF_SECRET}"
|
||||
volumes:
|
||||
- "${OPSBOX_DATA_ROOT:?Set OPSBOX_DATA_ROOT}/wg-portal/data:/app/data"
|
||||
- "${OPSBOX_DATA_ROOT:?Set OPSBOX_DATA_ROOT}/wg-portal/config:/app/config"
|
||||
networks:
|
||||
- default
|
||||
- proxy
|
||||
labels:
|
||||
caddy: "${OPSBOX_SUB_WGPORTAL:-vpn}.${OPSBOX_DOMAIN:-opsbox.internal}"
|
||||
caddy.reverse_proxy: "{{upstreams 8888}}"
|
||||
caddy.tls: internal
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
name: opsbox_proxy
|
||||
Reference in New Issue
Block a user