Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/ai web apps

Run Dify, Flowise, and Langflow workflows cleanly in Docker

Harden self-hosted Dify, Flowise, and Langflow agent platforms with PostgreSQL storage, generated encryption keys, SSRF defenses, and private proxy networks.

Intermediate
30 min
Updated 2026-11-23

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

Commands checked on 2026-11-23 with Dify 0.14+, Flowise 2.2+, Langflow 1.1+, PostgreSQL 17, Valkey 8.

What you will have at the end

Production-grade deployment patterns for agent and RAG orchestration tools (Dify, Flowise, and Langflow) backed by persistent PostgreSQL databases, strong cryptographic encryption keys, tenant isolation, and reverse-proxy HTTPS without exposing admin APIs or SSRF HTTP-fetch nodes to internal LAN ranges.

Before you start

  • A running LLM/embedding backend (Ollama, vLLM, or managed endpoint); see Deploy Ollama, Open WebUI, and vLLM on isolated Docker nets.
  • PostgreSQL 17 and Valkey/Redis available inside internal_net; see Tune Valkey, Qdrant, Meilisearch, and MinIO in Docker.

Steps

1. Generate high-entropy cryptographic keys before first start

Workflow builders encrypt model provider API keys, vector store tokens, and session cookies at rest. Never keep example secrets from upstream compose templates:

SECRET_KEY=$(openssl rand -base64 42)
LANGFLOW_SECRET_KEY=$(python3 -c "from secrets import token_urlsafe; print(token_urlsafe(32))" 2>/dev/null || openssl rand -base64 32)
FLOWISE_SECRETKEY_OVERWRITE=$(openssl rand -hex 32)

Store generated keys in a 0600 .env file outside Git (chmod 600 .env) and back them up safely inside a secrets manager.

2. Replace default SQLite storage with PostgreSQL + healthchecks

Embedded SQLite databases corrupt or stall with SQLITE_BUSY under concurrent workflow executions. Configure Postgres dependencies explicitly for Flowise and Langflow:

services:
  postgres:
    image: pgvector/pgvector:pg17
    restart: unless-stopped
    environment:
      POSTGRES_USER: workflows
      POSTGRES_PASSWORD: ${WORKFLOW_DB_PASS}
      POSTGRES_DB: workflows
    volumes:
      - workflows_pg:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U workflows"]
      interval: 5s
      timeout: 5s
      retries: 10
    networks:
      - internal_net

  langflow:
    image: langflowai/langflow:latest
    restart: unless-stopped
    depends_on:
      postgres:
        condition: service_healthy
    environment:
      - LANGFLOW_DATABASE_URL=postgresql://workflows:${WORKFLOW_DB_PASS}@postgres:5432/workflows
      - LANGFLOW_SECRET_KEY=${LANGFLOW_SECRET_KEY}
      - LANGFLOW_AUTO_LOGIN=false
      - LANGFLOW_SUPERUSER=admin
      - LANGFLOW_SUPERUSER_PASSWORD=${LANGFLOW_ADMIN_PASS}
    volumes:
      - langflow_data:/app/langflow
    networks:
      - internal_net
      - proxy_net

Notice LANGFLOW_AUTO_LOGIN=false: leaving auto-login enabled exposes every saved LLM credential to anyone reaching the URL. Similarly, on Flowise set FLOWISE_USERNAME and FLOWISE_PASSWORD (or place behind Authentik OIDC forward auth).

3. Lock down HTTP Tool / Scraper nodes against SSRF

Workflow builders let agents fetch URLs (WebScraper, HTTP Request tools). On cloud VMs or hybrid networks, block containers from calling link-local cloud metadata (169.254.169.254) or private RFC1918 hosts by configuring Dify's SSRF_PROXY_HTTP_URL / sandbox container (dify-sandbox) or egress firewall drops on DOCKER-USER:

sudo iptables -I DOCKER-USER -d 169.254.169.254/32 -j DROP

Check that it works

Verify database connectivity, authentication gates, and proxy health:

docker compose ps
curl -s -o /dev/null -w "Langflow unauth /api/v1/flows -> %{http_code}\n" https://flow.YOUR_DOMAIN/api/v1/flows

Unauthenticated requests to protected workspace endpoints must return 401 or 403, never 200.

What can go wrong

  • Flowise or Langflow forgets all flows after recreating containers. The persistent volume (/root/.flowise or PostgreSQL volume) wasn't mapped or POSTGRES_DB pointed to an ephemeral container directory. Check docker inspect mounts before pulling new images.
  • Model keys show Invalid token / decryption failed after restart. WEBUI_SECRET_KEY / LANGFLOW_SECRET_KEY was dynamically regenerated on boot because it wasn't persisted in .env.
  • Sandbox code execution tools crash or fail network lookups. Dify's isolated code-runner sandbox blocks arbitrary outbound HTTP requests by design unless permitted explicitly in its proxy whitelist.

Good practice

  • Always run Dify, Flowise, and Langflow behind authentication (AUTO_LOGIN=false + MFA SSO) before exposing them beyond a VPN or IP allowlist.
  • Separate untrusted code-execution plugins and sandbox containers from containers holding PostgreSQL database credentials.
  • Pin explicit container image digests or minor version tags (v1.x.y) rather than latest before production upgrades, and dump Postgres before upgrading.

Where to go next

  • Build RAG with PostgreSQL and pgvector HNSW
  • Input and output guardrails for AI applications
  • Expose your API cleanly through a Model Context Protocol server

Related Articles

Choose a model for your app by measuring it

Read more

Add a first AI feature to a Next.js app

Read more

Build zero-trust input and output guardrails for AI apps

Read more

Frequently Asked Questions

What does the Run Dify, Flowise, and Langflow workflows cleanly in Docker documentation guide cover?
Harden self-hosted Dify, Flowise, and Langflow agent platforms with PostgreSQL storage, generated encryption keys, SSRF defenses, and private proxy networks. It is rated intermediate difficulty (30 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with Run Dify, Flowise, and Langflow workflows cleanly in Docker?

Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.

Was this article helpful?

On this page

What you will have at the endBefore you startSteps1. Generate high-entropy cryptographic keys before first start2. Replace default SQLite storage with PostgreSQL + healthchecks3. Lock down HTTP Tool / Scraper nodes against SSRFCheck that it worksWhat can go wrongGood practiceWhere to go next
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library