fix(monitoring): add loki to back-tier network
This commit is contained in:
@@ -105,7 +105,15 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3100:3100"
|
- "3100:3100"
|
||||||
command: -config.file=/etc/loki/loki.yaml
|
command: -config.file=/etc/loki/loki.yaml
|
||||||
|
networks:
|
||||||
|
- back-tier
|
||||||
volumes:
|
volumes:
|
||||||
- ./loki/loki.yaml:/etc/loki/loki.yaml:ro
|
- ./loki/loki.yaml:/etc/loki/loki.yaml:ro
|
||||||
- loki_data:/var/lib/loki
|
- loki_data:/var/lib/loki
|
||||||
|
healthcheck:
|
||||||
|
test: wget --quiet --tries=1 --output-document=- http://localhost:3100/ready | grep -q -w ready || exit 1
|
||||||
|
start_period: 20s
|
||||||
|
interval: 10s
|
||||||
|
timeout: 1s
|
||||||
|
retries: 12 # try for 2 minutes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user