fix: add front network to tools stack for Docker port binding
Some checks failed
CI/CD / syntax-check (push) Successful in 1m11s
CI/CD / deploy (push) Failing after 1m45s

Docker 29.x does not create DNAT rules for containers only on internal
networks. Add a non-internal 'front' network that outline and n8n join
alongside their internal networks, enabling host port binding to work.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jack 2026-03-22 15:10:52 +07:00
parent 28f8c76433
commit a7b14759af

View file

@ -2,6 +2,10 @@
# Do not edit manually; re-run ansible-playbook playbooks/tools.yml
networks:
# front — non-internal: needed for Docker port binding to work (expose ports to host)
# Docker does not create DNAT rules for containers only on internal networks
front:
driver: bridge
outline-internal:
driver: bridge
internal: true
@ -24,6 +28,7 @@ services:
env_file: .env
networks:
- outline-internal
- front # needed for host port binding
ports:
# Exposed only to main Traefik (access controlled by UFW)
- "{{ ip_tools }}:3000:3000"
@ -92,6 +97,7 @@ services:
restart: unless-stopped
networks:
- n8n-internal
- front # needed for host port binding
ports:
# Exposed only to main Traefik (access controlled by UFW)
- "{{ ip_tools }}:5678:5678"