-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 939 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3'
services:
elastic-embeddings:
build: .
networks:
- elastic-embeddings-network
ports:
- "8080:8080"
volumes:
- ./src/ElasticEmbeddings.API/Data:/app/Data
env_file:
- .env
depends_on:
elasticsearch:
condition: service_healthy
elasticsearch:
image: elasticsearch:8.11.1
container_name: elasticsearch
networks:
- elastic-embeddings-network
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: "single-node"
ELASTIC_PASSWORD: "ELASTIC_PASSWORD"
healthcheck:
test:
[
"CMD-SHELL",
"curl -s --user elastic:ELASTIC_PASSWORD --insecure -XGET https://localhost:9200/_cluster/health?pretty | grep status | grep -q '\\(green\\|yellow\\)'"
]
interval: 2s
timeout: 10s
retries: 30
networks:
elastic-embeddings-network:
driver: bridge