feat(service): add Typesense service (#5643)
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								public/svgs/typesense.webp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/svgs/typesense.webp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 550 B  | 
							
								
								
									
										21
									
								
								templates/compose/typesense.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								templates/compose/typesense.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					# documentation: https://typesense.org/docs
 | 
				
			||||||
 | 
					# slogan: Cutting-edge, in-memory search engine for mere mortals. Knowledge of rocket science optional.
 | 
				
			||||||
 | 
					# tags: search, search-engine, search-api, elasticsearch-alternative
 | 
				
			||||||
 | 
					# logo: svgs/typesense.webp
 | 
				
			||||||
 | 
					# port: 8108
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  typesense:
 | 
				
			||||||
 | 
					    image: typesense/typesense:28.0
 | 
				
			||||||
 | 
					    restart: on-failure
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - SERVICE_FQDN_TYPESENSE_8108
 | 
				
			||||||
 | 
					      - TYPESENSE_ENABLE_CORS=true
 | 
				
			||||||
 | 
					      - TYPESENSE_DATA_DIR=/data
 | 
				
			||||||
 | 
					      - TYPESENSE_API_KEY=${SERVICE_TYPESENSE_KEY:-xyz}
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - 'typesense_data:/data'
 | 
				
			||||||
 | 
					    healthcheck:
 | 
				
			||||||
 | 
					      test: [CMD, bash, -c, "exec 3<>/dev/tcp/localhost/8108 && printf 'GET /health HTTP/1.1\\r\\nConnection: close\\r\\n\\r\\n' >&3 && head -n1 <&3 | grep '200' && exec 3>&-"]
 | 
				
			||||||
 | 
					      retries: 5
 | 
				
			||||||
 | 
					      timeout: 7s
 | 
				
			||||||
		Reference in New Issue
	
	Block a user