2020-05-04 17:28:01 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								services:
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 18:16:20 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-05-04 17:28:01 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  haystack-api:
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 18:16:20 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    # Pull Haystack's latest commit
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    image: "deepset/haystack:cpu-main"
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-03 11:49:12 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    volumes:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      - ./rest_api/rest_api/pipeline:/opt/pipelines
							 | 
						
					
						
							
								
									
										
										
										
											2020-05-04 17:28:01 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    ports:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      - 8000:8000
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-27 17:07:36 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    restart: on-failure
							 | 
						
					
						
							
								
									
										
										
										
											2020-05-04 17:28:01 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    environment:
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-14 12:28:30 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      - DOCUMENTSTORE_PARAMS_HOST=elasticsearch
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-03 11:49:12 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      - PIPELINE_YAML_PATH=/opt/pipelines/pipelines.haystack-pipeline.yml
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 18:16:20 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      - TOKENIZERS_PARALLELISM=false
							 | 
						
					
						
							
								
									
										
										
										
											2020-07-07 16:25:36 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    depends_on:
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 18:16:20 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      elasticsearch:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        condition: service_healthy
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-05-04 17:28:01 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  elasticsearch:
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-03 11:49:12 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    image: "docker.elastic.co/elasticsearch/elasticsearch:7.17.6"
							 | 
						
					
						
							
								
									
										
										
										
											2020-07-07 16:25:36 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    ports:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								      - 9200:9200
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-27 17:07:36 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    restart: on-failure
							 | 
						
					
						
							
								
									
										
										
										
											2020-05-04 17:28:01 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    environment:
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-27 18:06:09 +05:30
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      - discovery.type=single-node
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 18:16:20 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								      - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    healthcheck:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        test: curl --fail http://localhost:9200/_cat/health || exit 1
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        interval: 10s
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        timeout: 1s
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        retries: 10
							 |