Compare commits
No commits in common. "54fc589e00f2fb107047c62611c487c823660f52" and "0a8dc2503cfd26c109d04e34ff096520084d54d9" have entirely different histories.
54fc589e00
...
0a8dc2503c
2 changed files with 3 additions and 4 deletions
|
@ -3,6 +3,8 @@ ARG BASE_IMAGE=sutty/monit
|
||||||
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
||||||
MAINTAINER "f <f@sutty.nl>"
|
MAINTAINER "f <f@sutty.nl>"
|
||||||
|
|
||||||
|
COPY ./syncthingd.sh /usr/local/bin/syncthingd
|
||||||
|
|
||||||
# Syncthing runs with Sutty's uid and gid so ownership is kept, because
|
# Syncthing runs with Sutty's uid and gid so ownership is kept, because
|
||||||
# they are not synced.
|
# they are not synced.
|
||||||
RUN getent group 82 || addgroup -g 82 -S www-data
|
RUN getent group 82 || addgroup -g 82 -S www-data
|
||||||
|
@ -11,7 +13,6 @@ RUN adduser -s /bin/sh -G www-data -D -u 1000 -h /home/syncthing syncthing
|
||||||
RUN apk add --no-cache ca-certificates daemonize syncthing
|
RUN apk add --no-cache ca-certificates daemonize syncthing
|
||||||
|
|
||||||
COPY ./monit.conf /etc/monit.d/syncthing.conf
|
COPY ./monit.conf /etc/monit.d/syncthing.conf
|
||||||
COPY ./syncthingd.sh /usr/local/bin/syncthingd
|
|
||||||
|
|
||||||
EXPOSE 22000
|
EXPOSE 22000
|
||||||
EXPOSE 22000/udp
|
EXPOSE 22000/udp
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
pid=/tmp/syncthing.pid
|
pid=/tmp/syncthing.pid
|
||||||
dir=/home/syncthing
|
dir=/home/syncthing
|
||||||
log=/home/syncthing/syncthing.log
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
|
@ -11,9 +10,8 @@ case $1 in
|
||||||
install -dm 2750 -o syncthing -g syncthing ${dir}/Sync/.stfolder
|
install -dm 2750 -o syncthing -g syncthing ${dir}/Sync/.stfolder
|
||||||
|
|
||||||
daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \
|
daemonize -p ${pid} -l ${pid} -u syncthing -c ${dir} \
|
||||||
-a -e ${log} -o ${log} \
|
|
||||||
/usr/bin/syncthing serve \
|
/usr/bin/syncthing serve \
|
||||||
--gui-address=http://[::]:8384 \
|
--skip-port-probing \
|
||||||
--no-browser \
|
--no-browser \
|
||||||
--no-restart \
|
--no-restart \
|
||||||
--no-upgrade \
|
--no-upgrade \
|
||||||
|
|
Loading…
Reference in a new issue