security: bind service ports to localhost only

Bind navidrome, n8n, immich, openclaw, gitea web ports to 127.0.0.1
to prevent direct LAN access bypassing Caddy/Authelia.

Tailscale userspace networking on Synology proxies through localhost,
so VPS Caddy access via Tailscale IP continues to work.

Gitea SSH port (2222) remains on all interfaces for external git push.
This commit is contained in:
Gan, Jimmy
2026-02-28 22:47:36 +08:00
parent 3fd045aacb
commit cdd364e645
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ services:
- /etc/TZ:/etc/TZ:ro - /etc/TZ:/etc/TZ:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- "3300:3000" - "127.0.0.1:3300:3000"
- "2222:22" - "2222:22"
depends_on: depends_on:
- db - db
+1 -1
View File
@@ -4,7 +4,7 @@ services:
container_name: immich-server container_name: immich-server
restart: unless-stopped restart: unless-stopped
ports: ports:
- "2283:2283" - "127.0.0.1:2283:2283"
volumes: volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload - ${UPLOAD_LOCATION}:/usr/src/app/upload
- /volume1/photo:/mnt/photo:ro - /volume1/photo:/mnt/photo:ro
+1 -1
View File
@@ -4,7 +4,7 @@ services:
container_name: n8n container_name: n8n
restart: unless-stopped restart: unless-stopped
ports: ports:
- "5678:5678" - "127.0.0.1:5678:5678"
volumes: volumes:
- ./data:/home/node/.n8n - ./data:/home/node/.n8n
environment: environment:
+1 -1
View File
@@ -4,7 +4,7 @@ services:
container_name: navidrome container_name: navidrome
restart: unless-stopped restart: unless-stopped
ports: ports:
- "4533:4533" - "127.0.0.1:4533:4533"
environment: environment:
ND_SCANSCHEDULE: 1h ND_SCANSCHEDULE: 1h
ND_LOGLEVEL: info ND_LOGLEVEL: info
+1 -1
View File
@@ -4,7 +4,7 @@ services:
container_name: openclaw-gateway container_name: openclaw-gateway
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3100:18789" - "127.0.0.1:3100:18789"
environment: environment:
HOME: /home/node HOME: /home/node
TERM: xterm-256color TERM: xterm-256color