|
@@ -117,21 +117,20 @@ services:
|
117
|
117
|
- 443:443
|
118
|
118
|
network_mode: host
|
119
|
119
|
|
120
|
|
- # We use inotify-signal-container to monitor for nginx config
|
121
|
|
- # file and SSL cert changes (using inotify) and send nginx a
|
122
|
|
- # SIGHUP signal.
|
|
120
|
+ # We use this container to monitor for nginx config file and SSL cert changes
|
|
121
|
+ # (using inotify) and send nginx a SIGHUP signal.
|
123
|
122
|
nginx-config-hupper:
|
124
|
|
- image: masm/inotify-signal-container:latest
|
|
123
|
+ image: pstauffer/inotify:latest
|
125
|
124
|
container_name: autoproxy_nginx-config-hupper
|
126
|
125
|
restart: always
|
127
|
126
|
volumes:
|
128
|
127
|
- nginx-config:/monitor/nginx
|
129
|
128
|
- letsencrypt-data:/monitor/letsencrypt
|
130
|
129
|
- /var/run/docker.sock:/var/run/docker.sock
|
131
|
|
- command:
|
132
|
|
- - autoproxy_nginx
|
133
|
|
- - SIGHUP
|
134
|
|
- - /monitor
|
|
130
|
+ environment:
|
|
131
|
+ - 'CONTAINER=autoproxy_nginx'
|
|
132
|
+ - 'VOLUMES=/monitor'
|
|
133
|
+ - 'INOTIFY_OPTONS=--monitor --exclude=*.sw[px] --recursive'
|
135
|
134
|
|
136
|
135
|
volumes:
|
137
|
136
|
|