Parcourir la 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 il y a 7 ans
Parent
révision
c9b00c87e2
1 fichiers modifiés avec 7 ajouts et 8 suppressions
  1. 7
    8
      docker-compose.yml

+ 7
- 8
docker-compose.yml Voir le fichier

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

Chargement…
Annuler
Enregistrer