-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (71 loc) · 2.3 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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
# - network.host=0.0.0.0
# - http.port=9200
- http.cors.enabled=true
- http.cors.allow-origin="*"
# - http.cors.allow-headers=Authorization,X-Requested-With,Content-Type,Content-Length
# - http.cors.allow-credentials=true
# - ELASTICSEARCH_HOST=http://0.0.0.0:9200
# -
ports:
- "9200:9200"
volumes:
- es_data:/usr/share/elasticsearch/data
networks:
- elastic_v1
loader:
build:
context: .
dockerfile: Dockerfile
container_name: loader
depends_on:
- elasticsearch
# environment:
# - ELASTICSEARCH_HOST=http://0.0.0.0:9200
# extra_hosts:
# - "host.docker.internal:9200"
networks:
- elastic_v1
backend:
image : pytorch/pytorch
build:
context: .
dockerfile: Dockerfile
# platforms:
# - linux/arm64
container_name: fastapi
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
# - network.host=0.0.0.0
# - http.port=9200
# - http.cors.enabled=true
# - http.cors.allow-origin=*
# - http.cors.allow-headers=Authorization,X-Requested-With,Content-Type,Content-Length
# - http.cors.allow-credentials=true
- ELASTICSEARCH_HOST=elasticsearch
depends_on:
- elasticsearch
networks:
- elastic_v1
ports:
- "8000:8000"
# extra_hosts:
# - "host.docker.internal:8000"
command: ["uvicorn", "search_api_endpoint:app", "--host", "0.0.0.0", "--port", "8000" ] #, "--reload"]
volumes:
es_data:
networks:
elastic_v1:
driver: bridge