Update rego-tunnel to use linux-vm from container registry
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2025-12-25 07:53:58 +00:00
parent 3a674bc44d
commit 4efb8d205f
2 changed files with 16 additions and 38 deletions

View File

@@ -2,47 +2,27 @@
"services": [ "services": [
{ {
"name": "rego-tunnel", "name": "rego-tunnel",
"image": "dockurr/windows:latest", "image": "git.alexzaw.dev/alexz/linux-vm:latest",
"isMain": true, "isMain": true,
"internalPort": 8006, "internalPort": 6080,
"addPorts": [
{
"hostPort": 8005,
"containerPort": 8005,
"tcp": true,
"udp": true
}
],
"environment": [ "environment": [
{ {
"key": "RAM_SIZE", "key": "VM_RAM",
"value": "${WINDOWS_RAM_GB}G" "value": "${WINDOWS_RAM_GB}G"
}, },
{ {
"key": "CPU_CORE", "key": "VM_CPUS",
"value": "${WINDOWS_CPU_CORES}" "value": "${WINDOWS_CPU_CORES}"
},
{
"key": "DISK_SIZE",
"value": "${WINDOWS_DISK_SIZE_GB}G"
},
{
"key": "VERSION",
"value": "${WINDOWS_VERSION}"
} }
], ],
"volumes": [ "volumes": [
{ {
"hostPath": "${APP_DATA_DIR}/data/storage", "hostPath": "${APP_DATA_DIR}/data/storage/linux-vm.qcow2",
"containerPath": "/storage" "containerPath": "/vm/linux-vm.qcow2"
}, },
{ {
"hostPath": "${APP_DATA_DIR}/data/shared", "hostPath": "${APP_DATA_DIR}/data/shared",
"containerPath": "/shared" "containerPath": "/shared"
},
{
"hostPath": "${APP_DATA_DIR}/data/start.sh",
"containerPath": "/run/start.sh"
} }
], ],
"sysctls": { "sysctls": {
@@ -50,6 +30,7 @@
}, },
"devices": ["/dev/kvm", "/dev/net/tun"], "devices": ["/dev/kvm", "/dev/net/tun"],
"capAdd": ["NET_ADMIN"], "capAdd": ["NET_ADMIN"],
"privileged": true,
"stopGracePeriod": "2m" "stopGracePeriod": "2m"
} }
], ],

View File

@@ -1,8 +1,9 @@
services: services:
rego-tunnel: rego-tunnel:
container_name: rego-tunnel container_name: rego-tunnel
image: dockurr/windows:latest image: git.alexzaw.dev/alexz/linux-vm:latest
restart: unless-stopped restart: unless-stopped
privileged: true
devices: devices:
- /dev/kvm - /dev/kvm
- /dev/net/tun - /dev/net/tun
@@ -10,17 +11,13 @@ services:
- NET_ADMIN - NET_ADMIN
stop_grace_period: 2m stop_grace_period: 2m
ports: ports:
# Web console (Tipi APP_PORT -> 8006) - ${APP_PORT}:6080
- ${APP_PORT}:8006
environment: environment:
- RAM_SIZE=${WINDOWS_RAM_GB}G - VM_RAM=${WINDOWS_RAM_GB}G
- CPU_CORE=${WINDOWS_CPU_CORES} - VM_CPUS=${WINDOWS_CPU_CORES}
- DISK_SIZE=${WINDOWS_DISK_SIZE_GB}G
- VERSION=${WINDOWS_VERSION}
volumes: volumes:
- ${APP_DATA_DIR}/data/storage:/storage - ${APP_DATA_DIR}/data/storage/linux-vm.qcow2:/vm/linux-vm.qcow2
- ${APP_DATA_DIR}/data/shared:/shared - ${APP_DATA_DIR}/data/shared:/shared
- /etc/runtipi/repos/runtipi/apps/rego-tunnel/vpn_scripts:/vpn_scripts:ro
networks: networks:
- tipi_main_network - tipi_main_network
sysctls: sysctls:
@@ -28,7 +25,7 @@ services:
labels: labels:
traefik.enable: true traefik.enable: true
traefik.http.middlewares.rego-tunnel-web-redirect.redirectscheme.scheme: https traefik.http.middlewares.rego-tunnel-web-redirect.redirectscheme.scheme: https
traefik.http.services.rego-tunnel.loadbalancer.server.port: 8006 traefik.http.services.rego-tunnel.loadbalancer.server.port: 6080
traefik.http.routers.rego-tunnel-insecure.rule: Host(`${APP_DOMAIN}`) traefik.http.routers.rego-tunnel-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.rego-tunnel-insecure.entrypoints: web traefik.http.routers.rego-tunnel-insecure.entrypoints: web
traefik.http.routers.rego-tunnel-insecure.service: rego-tunnel traefik.http.routers.rego-tunnel-insecure.service: rego-tunnel