install run dir before running
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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 ./monit.conf /etc/monit.d/redis.conf
|
||||
COPY ./redisd.sh /usr/local/bin/redisd
|
||||
|
||||
EXPOSE 6379
|
||||
VOLUME "/var/lib/redis"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
check process redis with pidfile /run/redis/redis.pid
|
||||
start program = "/usr/bin/redis-server /etc/redis.conf" as uid "redis" and gid "redis"
|
||||
stop program = "/usr/bin/redis-cli shutdown"
|
||||
start program = "/usr/local/bin/redisd start"
|
||||
stop program = "/usr/local/bin/redisd stop"
|
||||
if failed port 6379 protocol redis 3 times within 5 cycles then restart
|
||||
|
|
Loading…
Reference in New Issue