Files
rvbox/test/rdp-access/compose-lan.yaml
T

26 lines
911 B
YAML

services:
relay:
image: alpine/socat@sha256:82ad20f6f6e29b91ff33b6662d24063522b1378f08fd8569cd3ab412cac13f50
# On Linux this reaches the host's existing loopback-only VRDE socket.
# Never publish on 0.0.0.0, and never mount the Docker socket or host files.
network_mode: host
user: "65534:65534"
read_only: true
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
restart: unless-stopped
mem_limit: 32m
pids_limit: 32
command:
- -d
- -d
- TCP4-LISTEN:${LAN_PORT},bind=${LAN_BIND},range=${LAN_CIDR},reuseaddr,fork,max-children=16,keepalive
- TCP4:127.0.0.1:${VRDE_PORT},connect-timeout=5,keepalive
labels:
rvbox.rdp.lan.managed_by: test/rdp-access/rdp-access
rvbox.rdp.lan.profile: ${LAN_PROFILE}
rvbox.rdp.lan.vm_uuid: ${VM_UUID}
logging:
driver: json-file
options: {max-size: 1m, max-file: "2"}