Add proper healthcheck to unbound telemetry + add depends_on
This commit is contained in:
		@@ -33,6 +33,9 @@ services:
 | 
			
		||||
    ports:
 | 
			
		||||
      - 127.0.0.1:84:3000
 | 
			
		||||
    restart: always
 | 
			
		||||
    depends_on:
 | 
			
		||||
      - postgres
 | 
			
		||||
      - redis
 | 
			
		||||
 | 
			
		||||
  prometheus:
 | 
			
		||||
    image: prom/prometheus:latest
 | 
			
		||||
@@ -55,3 +58,8 @@ services:
 | 
			
		||||
      - /data/remote-control.sock
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data/unbound-telemetry:/data
 | 
			
		||||
    healthcheck:
 | 
			
		||||
      test: curl --silent --fail http://127.0.0.1:9167/healthcheck || exit 1
 | 
			
		||||
      interval: 10s
 | 
			
		||||
      timeout: 1s
 | 
			
		||||
      retries: 5
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user