Add a healthcheck for the backup container
This commit is contained in:
+4
-1
@@ -44,7 +44,10 @@ services:
|
|||||||
entrypoint: /usr/local/bin/litestream
|
entrypoint: /usr/local/bin/litestream
|
||||||
command: replicate -config /opt/litestream/litestream.yaml
|
command: replicate -config /opt/litestream/litestream.yaml
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: true
|
test: ["CMD", "litestream", "databases", "-config", "/opt/litestream/litestream.yaml"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
environment:
|
environment:
|
||||||
- LITESTREAM_ACCESS_KEY_ID
|
- LITESTREAM_ACCESS_KEY_ID
|
||||||
- LITESTREAM_SECRET_ACCESS_KEY
|
- LITESTREAM_SECRET_ACCESS_KEY
|
||||||
|
|||||||
Reference in New Issue
Block a user