• 0
    Like
  • 0
    Comment
    • 2MB

    docker-compose

    touch tinyproxy.conf
    
    tinyproxy.conf
    User tinyproxy
    Group tinyproxy
    Port 8888
    Timeout 600
    DefaultErrorFile "/usr/share/tinyproxy/default.html"
    StatFile "/usr/share/tinyproxy/stats.html"
    LogLevel Info
    MaxClients 100
    MinSpareServers 5
    MaxSpareServers 20
    StartServers 10
    MaxRequestsPerChild 0
    ViaProxyName "tinyproxy"
    DisableViaHeader Yes
    ConnectPort 443
    ConnectPort 563
    
    Allow 192.168.xx.xx
    Allow 192.168.xx.xx
    
    docker-compose.yml
    proxy:
      image: tukiyo3/alpine-tinyproxy
      restart: always
      volumes:
        - ./tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf
      ports:
        - "8888:8888"
    

    docker run

    docker run \
     -d \
     --restart=always \
     -it \
     -p 8888:8888 \
     tukiyo3/alpine-tinyproxy
    # -v $(pwd)/tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf \
    
    export http_proxy="http://ipaddr:8888/"