This commit is contained in:
parent
dc6f91aa98
commit
9e0a1b4d25
2 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,8 @@ ARG BASE_IMAGE=sutty/monit
|
|||
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
||||
MAINTAINER "f <f@sutty.nl>"
|
||||
|
||||
ENV DATABASE_URL "/srv/mmmonit.sqlite3"
|
||||
|
||||
RUN apk add --no-cache mmmonit daemonize
|
||||
|
||||
COPY ./monit.conf /etc/monit.d/mmmonit.conf
|
||||
|
|
|
@ -10,7 +10,6 @@ usr=${USER:-nobody}
|
|||
case $1 in
|
||||
start)
|
||||
chown -R ${usr}:${usr} ${dir}
|
||||
install -dm 750 -o ${usr} -g ${usr} ${dir}/storage ${dir}/storage/xml
|
||||
daemonize -a -e ${log} -o ${log} -c ${dir} -p ${pid} -l ${pid} -u ${usr} /usr/bin/mmmonit -b :: -p 3000
|
||||
;;
|
||||
stop)
|
||||
|
|
Loading…
Reference in a new issue