Skip to content

threatpatrols/docker-multi-socat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-socat on Docker

Creates multiple socat pipes based on env-var names that start with 'MULTI_SOCAT'

Usage

Better docs someday...

Env-vars with prefix MULTI_SOCAT are sorted and used as socat command line inputs.

services:
  my-multi-socat:
    image: "threatpatrols/multi-socat"
    environment:
      MULTI_SOCAT_02: "TCP4-LISTEN:2222,reuseaddr,fork TCP4:127.0.0.1:22"
      MULTI_SOCAT_01: "UNIX-LISTEN:/run/docker.sock,reuseaddr,fork TCP4:127.0.0.1:80"