Comments (6)
Thanks for reviewing @ibnesayeed .
We're using the function NewEnvClient from docker. It creates a docker client using Environment variables configuration falling back to default values.
I think you can configure how it should connect to the docker api by setting environment variables.
// Use DOCKER_HOST to set the url to the docker server.
// Use DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest.
// Use DOCKER_CERT_PATH to load the tls certificates from.
// Use DOCKER_TLS_VERIFY to enable or disable TLS verification, off by default.
More info here: https://github.com/docker/engine-api/blob/master/client/client.go#L42
from caddy-docker-proxy.
Yes, from my casual scan of your code, I did not see any place where you were opening the socket file yourself, so I knew it was offloaded to Docker packages. This means we get this functionality for free. We just need to test it and document accordingly.
from caddy-docker-proxy.
Added that information to README file.
from caddy-docker-proxy.
@lucaslorentz, I think where we are documenting the DOCKER_HOST
, we need to explicitly mention that by default it will connect to /var/run/docker.sock
socket file.
from caddy-docker-proxy.
DOCKER_HOST default value varies per platform /var/run/docker.sock
Windows: "npipe:////./pipe/docker_engine"
Unix: "unix:///var/run/docker.sock"
I will add it to README.
from caddy-docker-proxy.
Done
from caddy-docker-proxy.
Related Issues (20)
- Clarification of labels needed
- Enhancement: Add requests per second to /metrics HOT 1
- Caddy config not reloaded HOT 4
- Redirecting to IP? HOT 1
- Enable localhost:2019/config/ HOT 4
- rate-limit: Do we need to build our own caddy-docker-proxy image? HOT 7
- Any way to get metrics on 2019 port? HOT 4
- `Failed to get Container Caddyfile` HOT 3
- Run server NOT in docker? (but controller in docker) HOT 1
- Add --pidfile flag to docker-proxy
- wildcard not working HOT 2
- IPv6 Logging not working HOT 2
- Caddy 2.8 Final Release HOT 2
- Trouble with generic logging snippet import HOT 2
- Expose caddy admin 2019
- Custom images HOT 2
- How to local test caddy with whoami HOT 1
- Changing HTTP status code rewrite - is that possible using labels? HOT 1
- Simple redirect to custom 404.html (static site)
- Global options seems not working in caddy-docker-proxy itself HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caddy-docker-proxy.