-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (36 loc) · 1.05 KB
/
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
42
43
version: '3.8'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.2
container_name: elasticsearch_demo_gambia
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
ports:
- "9200:9200"
volumes:
- es_data:/usr/share/elasticsearch/data
loader:
build:
context: .
dockerfile: Dockerfile
container_name: loader
depends_on:
- elasticsearch
backend:
image : pytorch/pytorch
build:
context: .
dockerfile: Dockerfile
platforms:
- linux/arm64
container_name: fastapi
depends_on:
- elasticsearch
ports:
- "8000:8000"
command: ["uvicorn", "search_api_endpoint:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
volumes:
es_data: