docker: make SFTP mount reachable through traefik override

Traefik only routes HTTP, so the SFTP port needs its own host publish.
Document 0.0.0.0 bind requirement for WORKSPACE_SFTP_BIND under Docker
and stop the override's ports: !override [] from swallowing it.
This commit is contained in:
nvrl committed 2026-09-21 15:35:45 +02:00
1 parent 25411ca115
commit ab8712559e
3 files changed
+21 -1

No files matched your search

+6 -1
View File
@@ -1,7 +1,12 @@
# Copy to compose.override.yml on the host that runs traefik.
services:
workspace:
ports: !override []
# Traefik only routes HTTP; SFTP (raw TCP) can't go through it, so its
# port is published straight to the host instead. Restrict to your IP,
# or leave it 127.0.0.1 and reach it over a VPN/SSH tunnel.
# Requires WORKSPACE_SFTP_BIND=0.0.0.0:2222 in .env to actually listen.
ports: !override
- "127.0.0.1:2222:2222"
networks:
- narl
- internal_net