Files
runtipi/apps/rego-tunnel/docker-compose.json
alexz beedccdc29
Some checks failed
Test / test (push) Has been cancelled
z
2025-12-29 00:36:23 +00:00

97 lines
2.3 KiB
JSON
Executable File

{
"schemaVersion": 2,
"services": [
{
"name": "rego-tunnel",
"image": "git.alexzaw.dev/alexz/linux-vm:latest",
"environment": [
{
"key": "VM_RAM",
"value": "${WINDOWS_RAM_GB}G"
},
{
"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}"
},
{
"key": "TSCLIENT",
"value": "${TSCLIENT:-/hostshare}"
}
],
"internalPort": 8006,
"volumes": [
{
"hostPath": "/etc/runtipi/user-config/runtipi/rego-tunnel/storage/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",
"readOnly": false,
"shared": false,
"private": false
},
{
"hostPath": "${TSCLIENT}",
"containerPath": "/shared/app-data",
"readOnly": false,
"shared": false,
"private": false
}
],
"stopGracePeriod": "2m",
"sysctls": {},
"devices": [
"/dev/kvm",
"/dev/net/tun"
],
"privileged": true,
"capAdd": [
"NET_ADMIN"
],
"isMain": true,
"extraLabels": {
"runtipi.managed": true
}
}
]
}