You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***Reverse Proxy Configs** - nginx, haproxy, etc. reverse proxy configs to route requests from the host to containers
11
-
***Service Discovery** - Scripts (python, bash, etc..) to register containers within etcd, hipache, etc..
8
+
***Centralized logging** - [fluentd](https://github.com/jwilder/docker-gen/blob/master/templates/fluentd.conf.tmpl), logstash or other centralized logging tools that tail the containers JSON log file or files within the container.
***Reverse Proxy Configs** - [nginx](https://github.com/jwilder/docker-gen/blob/master/templates/nginx.tmpl), [haproxy](https://github.com/jwilder/docker-discover), etc. reverse proxy configs to route requests from the host to containers
11
+
***Service Discovery** - Scripts (python, bash, etc..) to register containers within [etcd](https://github.com/jwilder/docker-register), hipache, etc..
12
12
13
13
===
14
14
15
15
### Installation
16
16
17
+
There are three common ways to run docker-gen:
18
+
* on the host
19
+
* bundled in a container with another application
20
+
* separate standalone containers
21
+
17
22
#### Host Install
18
23
19
24
Linux binaries for release [0.3.4](https://github.com/jwilder/docker-gen/releases)
@@ -29,20 +34,48 @@ $ tar xvzf docker-gen-linux-amd64-0.3.4.tar.gz
29
34
$ ./docker-gen
30
35
```
31
36
32
-
#### Container Install
37
+
#### Bundled Container Install
38
+
39
+
Docker-gen can be bundled inside of a container along-side and applications.
40
+
41
+
[jwilder/nginx-proxy](https://index.docker.io/u/jwilder/nginx-proxy/) trusted build is an example of
42
+
running docker-gen within a container along-side nginx.
43
+
[jwilder/docker-register](https://github.com/jwilder/docker-register) is an example or running
44
+
docker-gen within a container to do service registration with etcd.
45
+
46
+
#### Separate Container Install
47
+
48
+
It can also be run as two separate containers using the [jwilder/docker-gen](https://index.docker.io/u/jwilder/docker-gen/)
49
+
image virtually any other image.
50
+
51
+
This is how you could run the official [nginx](https://registry.hub.docker.com/_/nginx/) image and
52
+
have dockgen-gen generate a reverse proxy config in the same way that `nginx-proxy` works. You may want to do
53
+
this to prevent having the docker socket bound to an publicly exposed container service.
33
54
34
-
See [jwilder/nginx-proxy](https://index.docker.io/u/jwilder/nginx-proxy/) trusted build as an example of running docker-gen within a container.
0 commit comments