install run dir before running
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
71ac5427e0
commit
c3124adec4
|
@ -28,6 +28,7 @@ RUN apk add --no-cache redis
|
||||||
|
|
||||||
COPY --from=build /etc/redis.conf /etc/redis.conf
|
COPY --from=build /etc/redis.conf /etc/redis.conf
|
||||||
COPY ./monit.conf /etc/monit.d/redis.conf
|
COPY ./monit.conf /etc/monit.d/redis.conf
|
||||||
|
COPY ./redisd.sh /usr/local/bin/redisd
|
||||||
|
|
||||||
EXPOSE 6379
|
EXPOSE 6379
|
||||||
VOLUME "/var/lib/redis"
|
VOLUME "/var/lib/redis"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
check process redis with pidfile /run/redis/redis.pid
|
check process redis with pidfile /run/redis/redis.pid
|
||||||
start program = "/usr/bin/redis-server /etc/redis.conf" as uid "redis" and gid "redis"
|
start program = "/usr/local/bin/redisd start"
|
||||||
stop program = "/usr/bin/redis-cli shutdown"
|
stop program = "/usr/local/bin/redisd stop"
|
||||||
if failed port 6379 protocol redis 3 times within 5 cycles then restart
|
if failed port 6379 protocol redis 3 times within 5 cycles then restart
|
||||||
|
|
Loading…
Reference in a new issue