forked from kamba4/sunders
		
	feat: Adds healthcheck to web server
This commit is contained in:
		
					parent
					
						
							
								9138d57429
							
						
					
				
			
			
				commit
				
					
						fd6b1d680c
					
				
			
		
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -29,10 +29,18 @@ services: | ||||||
|       DEFAULT_LANGUAGE: en |       DEFAULT_LANGUAGE: en | ||||||
|       IMPRESSUM_URL: https://hamburg.ccc.de/imprint/ |       IMPRESSUM_URL: https://hamburg.ccc.de/imprint/ | ||||||
|     ports: |     ports: | ||||||
|       - "8080:80" |       - "8081:80" | ||||||
|     depends_on: |     depends_on: | ||||||
|       data_handler: |       data_handler: | ||||||
|         condition: service_started |         condition: service_started | ||||||
|  |     # all the way zoomed out, with hamburg at the center, at least one camera should be returned | ||||||
|  |     healthcheck: | ||||||
|  |       test: > | ||||||
|  |         ["CMD", "curl -s 'http://localhost/camera.php?bbox=-92.52991540527346,30.683278176916133,131.7689595947266,72.87186315234298&zoom=4&width=2552&height=867' | grep '^\[.+\]$'"] | ||||||
|  |       interval: 10s | ||||||
|  |       timeout: 5s | ||||||
|  |       start_period: 30s | ||||||
|  |       retries: 5 | ||||||
|    |    | ||||||
|   data_handler: |   data_handler: | ||||||
|     image: git.hamburg.ccc.de/ccchh/sunders/data_handler:latest |     image: git.hamburg.ccc.de/ccchh/sunders/data_handler:latest | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue