🇪🇺 Static IP for Docker — Container Outbound Proxy

🇪🇺 Static IP for Docker

Running Docker containers that call external APIs? Containers are ephemeral — their outbound IPs change on every restart and rebuild. Route outbound traffic through a dedicated static EU IP instead.

docker-compose.yml

services:

  app:

    image: my-app:latest

    environment:

      - HTTPS_PROXY=https://user:pass@eu-01.outboundgateway.com:8443

      - HTTP_PROXY=https://user:pass@eu-01.outboundgateway.com:8443

# All containers now share one

# static EU outbound IP address

The Problem

Docker containers are designed to be ephemeral — but that means their outbound IPs are unpredictable

Ephemeral Container IPs

Docker containers get new outbound IPs on every restart, rebuild, or scale event. The container that was whitelisted yesterday has a different IP today.

External APIs Require IP Allowlisting

Payment providers, CRMs, and B2B partner APIs require IP whitelisting. Your Docker containers can't reach them without a stable, predictable outbound IP.

Broken Connections After Restarts

When a container restarts and gets a new IP, whitelisted integrations fail silently. API calls return 403 errors. Debugging is painful and intermittent.

Multi-Container Complexity

Your app has API services, background workers, and sidecars. Each container has its own IP. You'd need to whitelist every single one — and update after every deploy.

When a Partner Tells You

"Whitelist this IP or your requests will be blocked."

But your Docker containers get new IPs on every docker-compose up. You need one stable IP to give them.

The Solution

Route Docker Container Traffic Through a Dedicated HTTPS Proxy with Static IP

Docker Container

HTTPS Proxy

(Static EU IP)

External API

The external API sees one fixed EU IP address — no matter which container or how many times it restarts.

Set HTTPS_PROXY in Docker Compose or docker run --env at runtime
All containers in a Compose stack share the same static outbound IP
TLS passthrough — your API keys and payloads stay encrypted end-to-end

Why Docker Users Choose This

One static IP across all containers — app, workers, sidecars, and cron jobs
Set once in Docker Compose environment variables — no per-container config
Works with Docker, Docker Compose, Docker Swarm, and any orchestration layer
Survives container restarts, rebuilds, and horizontal scaling events
EU-hosted infrastructure — GDPR-conscious proxy for European deployments
No application code changes — standard HTTPS_PROXY env var

Designed For

Backend Engineers

Running Docker containers that call external APIs requiring IP whitelisting

DevOps Teams

Managing Docker Compose stacks that need a consistent outbound IP for partner integrations

SaaS Platforms

Running containerized microservices that connect to partner APIs and payment providers

Compliance-Focused Teams

Running regulated container workloads that need clear outbound IP audit trails and EU data residency

Implementation

Set the proxy URL as an environment variable in your Docker configuration. All outbound requests from every container route through your static IP.

Docker Compose

Add the proxy URL to your docker-compose.yml environment section. All services in the stack share the same static IP.

# docker-compose.yml
services:
  app:
    build: .
    environment:
      - HTTPS_PROXY=https://user:pass@eu-01.outboundgateway.com:8443
      - HTTP_PROXY=https://user:pass@eu-01.outboundgateway.com:8443

  worker:
    build: .
    environment:
      - HTTPS_PROXY=https://user:pass@eu-01.outboundgateway.com:8443
      - HTTP_PROXY=https://user:pass@eu-01.outboundgateway.com:8443

.env File

Store the proxy URL in a .env file and reference it at runtime. Secrets never get baked into the image.

# .env (add to .dockerignore, never commit to git)
HTTPS_PROXY=https://user:pass@eu-01.outboundgateway.com:8443
HTTP_PROXY=https://user:pass@eu-01.outboundgateway.com:8443

# Use with docker run
docker run --env-file .env my-app:latest

# Or in docker-compose.yml
services:
  app:
    env_file: .env

Docker Run

Pass the proxy URL at runtime with the --env flag. No image rebuild needed.

# Pass proxy at runtime
docker run --env HTTPS_PROXY=https://user:pass@eu-01.outboundgateway.com:8443 \
           --env HTTP_PROXY=https://user:pass@eu-01.outboundgateway.com:8443 \
           my-app:latest

# Or use an env file
docker run --env-file .env my-app:latest

📖 Complete Documentation: For detailed examples, error handling, and advanced configurations, see our Python SSL Proxy Guide, Node.js Guide, and all other language guides.

Built for European Businesses

EU-hosted infrastructure with GDPR-conscious data handling for your containerized workloads.

EU-Hosted Infrastructure

Your proxy infrastructure runs entirely within the European Union. Container traffic stays in EU data centers.

GDPR-Conscious Environments

Designed for GDPR-conscious environments. TLS passthrough means your container payloads are never visible to the proxy.

No US-Based Routing

Container traffic routes entirely within EU infrastructure. No detours through US-based servers that could complicate compliance.

Clear Outbound Identity for Compliance

One static IP provides a clear, auditable outbound identity for compliance audits and partner security reviews.

Why Developers Choose OutboundGateway for Docker

Dedicated Static IP

One fixed IP for all containers. Only your containers use it. Whitelist once, deploy forever.

No Code Changes

Set an environment variable in your Docker Compose file. Your application code stays exactly the same.

EU-Hosted Infrastructure

European data centers. GDPR-conscious setup. Perfect for businesses with EU compliance requirements.

All Docker Setups

Docker Compose, Dockerfile, Docker Swarm, standalone containers — one static IP covers every setup.

End-to-End Encryption

TLS passthrough means we can't see your traffic. Your API keys and payloads stay secure.

Simple Transparent Pricing

€29/month flat. No usage tiers, no per-request billing, no surprises. Cancel anytime.

Get Your Static EU IP for Docker

Stop worrying about dynamic container IPs breaking your integrations. Start using a dedicated, EU-based static IP today.

€29/month starter plan • 7-day refund policy • Direct founder support

Still Deciding?

We're happy to help you determine if OutboundGateway is the right fit for your Docker containers.

Contact Our Founders →