From 59052ad5babc0ea42617940df97e7e987e427281 Mon Sep 17 00:00:00 2001 From: alexz Date: Thu, 18 Dec 2025 11:11:09 +0000 Subject: [PATCH] Revert to schemaVersion 2 format, keep source: local --- apps/rego-tunnel/docker-compose.json | 60 ++++++++++++++++++++++------ 1 file changed, 47 insertions(+), 13 deletions(-) diff --git a/apps/rego-tunnel/docker-compose.json b/apps/rego-tunnel/docker-compose.json index a37639e..381e6af 100755 --- a/apps/rego-tunnel/docker-compose.json +++ b/apps/rego-tunnel/docker-compose.json @@ -1,23 +1,57 @@ { + "schemaVersion": 2, "services": [ { "name": "rego-tunnel", "image": "rego-vpn:latest", - "isMain": true, + "environment": [ + { + "key": "RAM_SIZE", + "value": "${WINDOWS_RAM_GB}G" + }, + { + "key": "CPU_CORE", + "value": "${WINDOWS_CPU_CORES}" + }, + { + "key": "DISK_SIZE", + "value": "${WINDOWS_DISK_SIZE_GB}G" + }, + { + "key": "VERSION", + "value": "${WINDOWS_VERSION}" + } + ], "internalPort": 8006, - "privileged": true, - "capAdd": ["NET_ADMIN"], - "devices": ["/dev/kvm", "/dev/net/tun"], - "environment": { - "RAM_SIZE": "${WINDOWS_RAM_GB}G", - "CPU_CORE": "${WINDOWS_CPU_CORES}", - "DISK_SIZE": "${WINDOWS_DISK_SIZE_GB}G", - "VERSION": "${WINDOWS_VERSION}" - }, "volumes": [ - { "hostPath": "${APP_DATA_DIR}/data/storage", "containerPath": "/storage" }, - { "hostPath": "${APP_DATA_DIR}/data/shared", "containerPath": "/shared" } - ] + { + "hostPath": "${APP_DATA_DIR}/data/storage", + "containerPath": "/storage", + "readOnly": false, + "shared": false, + "private": false + }, + { + "hostPath": "${APP_DATA_DIR}/data/shared", + "containerPath": "/shared", + "readOnly": false, + "shared": false, + "private": false + } + ], + "stopGracePeriod": "2m", + "sysctls": {}, + "devices": [ + "/dev/kvm", + "/dev/net/tun" + ], + "capAdd": [ + "NET_ADMIN" + ], + "isMain": true, + "extraLabels": { + "runtipi.managed": true + } } ] }