File tree 4 files changed +11
-4
lines changed
etc/services.d/vhosts-watch
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ RUN mkdir -p $GOPATH/src/github.com/miniers/docker-gen \
35
35
FROM alpine:latest
36
36
MAINTAINER miniers <
[email protected] >
37
37
38
- ARG S6_OVERLAY_VERSION=v1.21.1.1
38
+ ARG S6_OVERLAY_VERSION=v1.21.2.2
39
39
40
40
ENV CADDY_OPTIONS ""
41
41
ENV DOCKER_HOST unix:///tmp/docker.sock
42
42
43
43
# install s6
44
- RUN apk add --update --no-cache curl tzdata && \
44
+ RUN apk add --update --no-cache curl tzdata inotify-tools && \
45
45
curl -sSL https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-amd64.tar.gz \
46
46
| tar xfz - -C / && \
47
47
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
Original file line number Diff line number Diff line change @@ -6,4 +6,6 @@ _ "github.com/caddyserver/dnsproviders/dnspod"
6
6
_ "github.com/jung-kurt/caddy-cgi"
7
7
_ "github.com/echocat/caddy-filter"
8
8
_ "github.com/hacdias/caddy-webdav"
9
- _ "github.com/hacdias/filemanager/caddy/filemanager"
9
+ _ "github.com/hacdias/filemanager/caddy/filemanager"
10
+ _ "github.com/linkonoid/caddy-dyndns"
11
+ _ "github.com/caddyserver/dnsproviders/cloudflare"
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/with-contenv sh
2
+
3
+ while inotifywait -e modify,create,delete /root/.caddy/vhosts; do
4
+ s6-svc -h /var/run/s6/services/caddy
5
+ done
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv sh
2
2
3
- s6-svc -1 /var/run/s6/services/caddy
3
+ s6-svc -h /var/run/s6/services/caddy
You can’t perform that action at this time.
0 commit comments