Blueprints · Docker & Databases
Langflow on localhost
Publishes Langflow on 127.0.0.1. Use 1.9.0 or later: versions up to 1.8.1 have an exploited code-injection flaw (CVE-2026-33017). A public 7860 is an admin API.
Why this should not be public
Langflow executes component code on the server, and more than a dozen Langflow flaws were exploited in 2026, including CVE-2026-33017 in versions up to 1.8.1. Treat port 7860 as an admin interface and run 1.9.0 or later.
Live config
Baked-in protections
- The host port is 127.0.0.1
- The image tag is 1.9.0 or the newer tag you replace it with
- The container cannot gain new privileges
Step 1 · yaml
Compose file
/opt/langflow-loopback/compose.yaml
Written under the compose directory. It is not started. The image tag is the release this blueprint was checked with: look at the project's release notes and use the newest patched tag.
services:
app:
image: langflowai/langflow:1.9.0
ports:
- "127.0.0.1:7860:7860"
security_opt:
- no-new-privileges:true
restart: unless-stopped
Step 2 · bash
Start script
/opt/langflow-loopback/up.sh
Review the image tag and the password, then run this yourself.
#!/bin/sh set -eu cd "/opt/langflow-loopback" if grep -q 'change-me' compose.yaml; then echo "Replace change-me before starting." exit 1 fi docker compose up -d
Step 3 · bash
Read-only check
/root/portgate-blueprints/langflow-loopback-check.sh
Prints status. It does not change the service.
#!/bin/sh
set -eu
if command -v docker >/dev/null 2>&1; then
docker ps --format '{{.Names}} {{.Ports}}' || echo "Docker is installed but the daemon did not answer."
else
echo "Docker is not installed. The compose file is staged only."
fi