From 203e04101bcdddef645446fec12c8ff6ff4d57a0 Mon Sep 17 00:00:00 2001 From: alexz Date: Sun, 28 Dec 2025 22:57:59 +0000 Subject: [PATCH] update json --- apps/rego-tunnel/docker-compose.json | 82 +++++++++++++++++++++++----- 1 file changed, 68 insertions(+), 14 deletions(-) diff --git a/apps/rego-tunnel/docker-compose.json b/apps/rego-tunnel/docker-compose.json index 67168c7..381d52c 100755 --- a/apps/rego-tunnel/docker-compose.json +++ b/apps/rego-tunnel/docker-compose.json @@ -1,10 +1,9 @@ { + "schemaVersion": 2, "services": [ { "name": "rego-tunnel", "image": "git.alexzaw.dev/alexz/linux-vm:latest", - "isMain": true, - "internalPort": 8006, "environment": [ { "key": "VM_RAM", @@ -13,27 +12,82 @@ { "key": "VM_CPUS", "value": "${WINDOWS_CPU_CORES}" + }, + { + "key": "BRIDGE_NAME", + "value": "${BRIDGE_NAME:-br-rego-vpn}" + }, + { + "key": "TAP_NAME", + "value": "${TAP_NAME:-tap0}" + }, + { + "key": "BRIDGE_CIDR", + "value": "${BRIDGE_CIDR:-100.100.0.1/24}" + }, + { + "key": "VM_NET_IP", + "value": "${VM_NET_IP:-100.100.0.2}" + }, + { + "key": "VM_SUBNET", + "value": "${VM_SUBNET:-100.100.0.0/24}" + }, + { + "key": "TARGET_IP", + "value": "${TARGET_IP:-10.35.33.230}" + }, + { + "key": "VM_MAC", + "value": "${VM_MAC:-52:54:00:12:34:56}" + }, + { + "key": "DNS_SERVERS", + "value": "${DNS_SERVERS:-1.1.1.1,8.8.8.8}" + }, + { + "key": "LEASE_TIME", + "value": "${LEASE_TIME:-12h}" } ], + "internalPort": 8006, "volumes": [ { "hostPath": "/etc/runtipi/user-config/runtipi/rego-tunnel/storage/linux-vm.qcow2", - "containerPath": "/vm/linux-vm.qcow2" + "containerPath": "/vm/linux-vm.qcow2", + "readOnly": false, + "shared": false, + "private": false }, { "hostPath": "/etc/runtipi/user-config/runtipi/rego-tunnel/shared", - "containerPath": "/shared" + "containerPath": "/shared", + "readOnly": false, + "shared": false, + "private": false + }, + { + "hostPath": "/etc/runtipi/app-data", + "containerPath": "/shared/app-data", + "readOnly": false, + "shared": false, + "private": false } ], - "sysctls": { - "net.ipv4.ip_forward": 1 - }, - "devices": ["/dev/kvm", "/dev/net/tun"], - "capAdd": ["NET_ADMIN"], + "stopGracePeriod": "2m", + "sysctls": {}, + "devices": [ + "/dev/kvm", + "/dev/net/tun" + ], "privileged": true, - "stopGracePeriod": "2m" + "capAdd": [ + "NET_ADMIN" + ], + "isMain": true, + "extraLabels": { + "runtipi.managed": true + } } - ], - "schemaVersion": 2, - "$schema": "https://schemas.runtipi.io/v2/dynamic-compose.json" -} + ] +} \ No newline at end of file