Browse Source
			
			
			Feature/Add healthcheck for Ghostfolio service (#2893)
			
				* Add curl to Dockerfile image
* Add healthcheck to docker-compose.yml and docker-compose.build.yml
* Update changelog
			
			
				pull/2902/head
			
			
		 
		
			
				
					
						 Thomas Dietrich
					
					2 years ago
						Thomas Dietrich
					
					2 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: B5690EEEBB952194
						
					
				
			
		
		
		
	
		
			
				 4 changed files with 
18 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
- 
					
					
					 
					Dockerfile
				
- 
					
					
					 
					docker/docker-compose.build.yml
				
- 
					
					
					 
					docker/docker-compose.yml
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. | 
			
		
	
		
			
				
					|  |  |  | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 
			
		
	
		
			
				
					|  |  |  | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | ## Unreleased | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | ### Added | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | - Added `healthcheck` for the _Ghostfolio_ service to the `docker-compose` files (`docker-compose.yml` and `docker-compose.build.yml`) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | ## 2.42.0 - 2024-01-21 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | ### Added | 
			
		
	
	
		
			
				
					|  |  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -13,8 +13,9 @@ COPY ./.yarnrc .yarnrc | 
			
		
	
		
			
				
					|  |  |  | COPY ./prisma/schema.prisma prisma/schema.prisma | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | RUN apt update && apt install -y \ | 
			
		
	
		
			
				
					|  |  |  |     git \ | 
			
		
	
		
			
				
					|  |  |  |     curl \ | 
			
		
	
		
			
				
					|  |  |  |     g++ \ | 
			
		
	
		
			
				
					|  |  |  |     git \ | 
			
		
	
		
			
				
					|  |  |  |     make \ | 
			
		
	
		
			
				
					|  |  |  |     openssl \ | 
			
		
	
		
			
				
					|  |  |  |     python3 \ | 
			
		
	
	
		
			
				
					|  |  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -16,6 +16,11 @@ services: | 
			
		
	
		
			
				
					|  |  |  |         condition: service_healthy | 
			
		
	
		
			
				
					|  |  |  |       redis: | 
			
		
	
		
			
				
					|  |  |  |         condition: service_healthy | 
			
		
	
		
			
				
					|  |  |  |     healthcheck: | 
			
		
	
		
			
				
					|  |  |  |       test: ['CMD-SHELL', 'curl -f http://localhost:3333/api/v1/health'] | 
			
		
	
		
			
				
					|  |  |  |       interval: 10s | 
			
		
	
		
			
				
					|  |  |  |       timeout: 5s | 
			
		
	
		
			
				
					|  |  |  |       retries: 5 | 
			
		
	
		
			
				
					|  |  |  |   postgres: | 
			
		
	
		
			
				
					|  |  |  |     image: postgres:15 | 
			
		
	
		
			
				
					|  |  |  |     env_file: | 
			
		
	
	
		
			
				
					|  |  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -16,6 +16,11 @@ services: | 
			
		
	
		
			
				
					|  |  |  |         condition: service_healthy | 
			
		
	
		
			
				
					|  |  |  |       redis: | 
			
		
	
		
			
				
					|  |  |  |         condition: service_healthy | 
			
		
	
		
			
				
					|  |  |  |     healthcheck: | 
			
		
	
		
			
				
					|  |  |  |       test: ['CMD-SHELL', 'curl -f http://localhost:3333/api/v1/health'] | 
			
		
	
		
			
				
					|  |  |  |       interval: 10s | 
			
		
	
		
			
				
					|  |  |  |       timeout: 5s | 
			
		
	
		
			
				
					|  |  |  |       retries: 5 | 
			
		
	
		
			
				
					|  |  |  |   postgres: | 
			
		
	
		
			
				
					|  |  |  |     image: postgres:15 | 
			
		
	
		
			
				
					|  |  |  |     env_file: | 
			
		
	
	
		
			
				
					|  |  | 
 |