23 lines
648 B
YAML
23 lines
648 B
YAML
version: '3.8'
|
|
|
|
# Simple proxy to allow n8n (bridge network) to reach OpenHands (host network)
|
|
# This is a workaround for the iptables restriction
|
|
|
|
services:
|
|
openhands-proxy:
|
|
image: alpine/socat:latest
|
|
container_name: openhands-proxy
|
|
restart: unless-stopped
|
|
# Listen on port 3000 inside services-stack network
|
|
# Forward to host's port 3000 (OpenHands)
|
|
command: tcp-listen:3000,fork,reuseaddr tcp-connect:host.docker.internal:3000
|
|
networks:
|
|
- services-network
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
networks:
|
|
services-network:
|
|
name: services-stack_services-network
|
|
external: true
|