forked from Alessandro-Gobbetti/IR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (53 loc) · 1.32 KB
/
docker-compose.yaml
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
version: '3.8'
services:
solr:
image: solr:9.0.0
volumes:
- ./data/solr:/var/solr/data
- ./solr/creators_configset:/opt/solr-9.0.0/server/solr/configsets/_default:ro
entrypoint: ["/bin/sh","-c"]
command:
- solr start -cloud
- solr create -c creators -d _default -shards 2 -rf 2 -p 8983
- |
/usr/bin/curl -X POST -H 'Content-type:application/json' -d '{ \
"add-requesthandler": {
"name": "/mlt",
"class": "solr.MoreLikeThisHandler",
"defaults": {"mlt.fl": "body"}
}}' http://localhost:8983/solr/creators/config"
- sleep infinity
# alpine:
# image: alpine
# entrypoint: "sleep infinity"
# networks:
# - mongodb-network
backend:
build: backend/
entrypoint: yarn start
volumes:
# - ./backend:/usr/app/
- /usr/app/node_modules
# ports:
# - "8888:8888"
depends_on:
- mongodb
- solr
networks:
- mongodb-network
environment:
- MONGODB_URI=mongodb
# ports:
mongodb:
image : mongo
container_name: mongodb
# environment:
volumes:
- ./data/mongo-database:/data/db
networks:
- mongodb-network
# ports: # Iff needed to be accessed locally
# - "27017:27017"
networks:
mongodb-network:
driver: bridge