Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

averyanalex/nginx-host-proxy

Repository files navigation

Nginx Host Proxy

Proxy all TCP traffic to specified host.

Useful for restricting container's outgoing connections

Usage

version: '3.7'

services:
  google-proxy:
    image: ghcr.io/averyanalex/nginx-host-proxy
    networks:
      - internet
      - no-internet
    environment:
      HOST: google.com
      PORTS: 80 443

  curl:
    image: curlimages/curl
    networks:
      - no-internet
    command: https://google.com
    links:
      - google-proxy:google.com
    depends_on:
      - google-proxy

networks:
  internet: {}
  no-internet:
    internal: true

About

Proxy all TCP traffic to specified host

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages