Browse Source

Replace nginx hupper.

The previous one didn't really work (the way we update files
doesn't trigger the modify event) and broke for newer versions
of Docker (which require a HTTP Host header).

Fixes #5
pull/9/head
Chris Smith 7 years ago
parent
commit
c9b00c87e2
1 changed files with 7 additions and 8 deletions
  1. 7
    8
      docker-compose.yml

+ 7
- 8
docker-compose.yml View File

@@ -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
 

Loading…
Cancel
Save