Simple proxy for Docker
Find a file
2019-12-02 01:52:03 +03:00
.github/workflows Update dockerimage.yml 2019-12-02 01:52:03 +03:00
.gitignore first commit 2019-12-01 22:44:49 +03:00
Dockerfile first commit 2019-12-01 22:44:49 +03:00
go.mod first commit 2019-12-01 22:44:49 +03:00
go.sum first commit 2019-12-01 22:44:49 +03:00
host.go first commit 2019-12-01 22:44:49 +03:00
main.go Added readme 2019-12-02 01:34:59 +03:00
README.md change registry 2019-12-02 01:49:25 +03:00
server.go Added readme 2019-12-02 01:34:59 +03:00
watcher.go Fixes 2019-12-01 23:37:00 +03:00

Cloud Proxy

Simple cloud proxy for docker

Usage

Run proxy itself

docker run  --name proxy --restart=always \
            -v /var/run/docker.sock:/var/run/docker.sock \
            -v $(pwd)/certs:/usr/app/certs \
            -p 80:80 -p 443:443 -d \
            neonxp/proxy

Add service to proxy

docker run -l "cp.host=HOST" -l "cp.port=PORT" -l "cp.tls=true" -d service

Here:

  • cp.host - label sets hostname of service
  • cp.port - label sets port that service binds (inside container)
  • cp.tls - if this label presents, service will work over auto TLS (let's encrypt)