forked from ncbo/ontoportal_docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
134 lines (123 loc) · 3.38 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: ontoportal
x-app: &api
stdin_open: true
tty: true
env_file:
.env
depends_on: &depends_on
solr-term:
condition: service_healthy
solr-prop:
condition: service_healthy
redis-persistent:
condition: service_healthy
redis-goo-cache:
condition: service_healthy
redis-http-cache:
condition: service_healthy
mgrep:
condition: service_started
# condition: service_healthy # FIXME: mgrep needs valid dictionary file to start which is not generated until ontology is processed
4store:
condition: service_started
services:
api:
<<: *api
image: bioportal/ontologies_api
command: "bundle exec rackup -o 0.0.0.0 --port 9393"
env_file:
.env
volumes:
- history:/usr/local/hist
- repository:/srv/ontoportal/data/repository
- reports:/srv/ontoportal/data/reports
ports:
- 9393:9393
ncbo_cron:
<<: *api
image: bioportal/ncbo_cron
command: "bundle exec bin/ncbo_cron"
volumes:
- history:/usr/local/hist
- repository:/srv/ontoportal/data/repository
- reports:/srv/ontoportal/data/reports
- mgrep:/srv/ontoportal/data/mgrep
- logs:/srv/ontoportal/ncbo_cron/logs
redis-persistent:
image: redis
volumes:
- redis_data:/data
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 3s
retries: 10
redis-goo-cache:
image: redis
command: ["redis-server", "--save", "", "--maxmemory-policy", "allkeys-lru", "--maxmemory", "128000000"]
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 3s
retries: 10
redis-http-cache:
image: redis
command: ["redis-server", "--save", "", "--maxmemory-policy", "volatile-ttl", "--maxmemory", "128000000"]
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 3s
retries: 10
4store:
image: bde2020/4store
platform: linux/amd64
volumes:
- 4store_data:/var/lib/4store
command: bash -c "4s-backend ontoportal_kb && 4s-httpd -D -s-1 -p 9000 ontoportal_kb"
solr-term:
image: solr:9.1
volumes:
- solr-term_data:/var/solr
- ../ontologies_linked_data/test/solr/configsets/:/configsets:ro
command: solr-precreate term_search_core1 /configsets/term_search
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8983/solr/term_search_core1/admin/ping?wt=json | grep -iq '\"status\":\"OK\"}' || exit 1"]
start_period: 3s
interval: 10s
timeout: 5s
retries: 5
solr-prop:
image: solr:9.1
volumes:
- solr-prop_data:/var/solr
- ../ontologies_linked_data/test/solr/configsets/:/configsets:ro
command: solr-precreate prop_search_core1 /configsets/property_search
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8983/solr/prop_search_core1/admin/ping?wt=json | grep -iq '\"status\":\"OK\"}' || exit 1"]
start_period: 3s
interval: 10s
timeout: 5s
retries: 5
mgrep:
image: ontoportal/mgrep:0.0.2
platform: linux/amd64
volumes:
- mgrep:/srv/mgrep/dictionary
healthcheck:
test: ["CMD", "nc", "-z", "-v", "localhost", "55556"]
start_period: 3s
interval: 10s
timeout: 5s
retries: 5
volumes:
bundle:
4store_data:
ag_data:
repository:
mgrep:
reports:
redis_data:
history:
logs:
solr-term_data:
solr-prop_data: