forked from Patent2net/P2N-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (79 loc) · 2.26 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
83
84
85
86
---
version: '3.6'
services:
elasticP2N:
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.0
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- cluster.name=P2N
- discovery.seed_hosts=["127.0.0.1", "localhost"]
- http.cors.enabled=true
- http.cors.allow-origin=/(null)|(https?:\/\/localhost(:[0-9]+)?)|(https?:\/\/cdn\.rawgit\.com(:[0-9]+)?)/
- "ES_JAVA_OPTS=-Xms512m -Xmx1g"
ports: ['9200:9200']
networks: ['p2n']
deploy:
resources:
limits:
cpus: "0.50"
memory: 1g
reservations:
cpus: "0.25"
memory: 512M
kibanaP2N:
image: docker.elastic.co/kibana/kibana:8.3.0
container_name: kibana
secrets:
- source: kibana.yml
target: /usr/share/kibana/config/kibana.yml
ports: ['5601:5601']
networks: ['p2n']
depends_on: ['elasticP2N']
# healthcheck:
# test: curl http://kibanaP2N:5601 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
# interval: 30s
# timeout: 10s
# retries: 5
# change it
#ELASTICSEARCH_PASSWORD: MonMdp # change it
p2nv3:
container_name: p2nv3
image: docker.io/dreymond/patent2net:p2nv3
volumes:
- type: bind
source: ./DATA
target: /home/p2n/P2N-V3/DATA
- type: bind
source: ./config/sav/RequestsSets
target: /home/p2n/P2N-V3/RequestsSets
ports:
- 5000:5000
stdin_open: true
tty: true
environment:
- LC_ALL=C.utf-8
- LANG=C.utf-8
- FLASK_ENV=development
networks: ['p2n']
carrot2:
container_name: carrot2
image: docker.io/dreymond/patent2net:p2n-carrot
ports:
- 8080:8080
stdin_open: true
tty: true
environment:
- LC_ALL=C.utf-8
- LANG=C.utf-8
- "ES_JAVA_OPTS=-Xms1024M -Xmx4g"
networks: ['p2n']
# use -p port below to change the local port for dcs. Adapt also ports opening for docker a few lines up!
command: /home/p2n/carrot2/carrot2-4.2.1/dcs/dcs.sh
networks: {p2n: {}}
secrets:
elasticsearch.yml:
file: ./config/elasticsearch/elasticsearch.yml
kibana.yml:
file: ./config/kibana/kibana.yml