Skip to content

Commit

Permalink
simplify the docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jun 4, 2024
1 parent d4a6fd9 commit af1d7e5
Showing 1 changed file with 7 additions and 36 deletions.
43 changes: 7 additions & 36 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@ x-app: &api
env_file:
.env
depends_on: &depends_on
solr-term:
solr:
condition: service_started
solr-prop:
condition: service_started
redis-persistent:
condition: service_healthy
redis-goo-cache:
condition: service_healthy
redis-http-cache:
redis:
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

Expand All @@ -36,7 +29,7 @@ services:

ncbo_cron:
<<: *api
image: bioportal/ncbo_cron
image: ${IMAGE_REPOSITORY}/ncbo_cron:${IMAGE_TAG}
command: "bundle exec bin/ncbo_cron"
volumes:
- history:/usr/local/hist
Expand All @@ -45,8 +38,9 @@ services:
- mgrep:/srv/ontoportal/data/mgrep
- logs:/srv/ontoportal/ncbo_cron/logs

redis-persistent:
redis:
image: redis
command: ["redis-server", "--save", "", "--maxmemory-policy", "volatile-ttl", "--maxmemory", "128000000"]
volumes:
- redis_data:/data
healthcheck:
Expand All @@ -55,36 +49,14 @@ services:
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
command: bin/solr start -cloud -f

solr-prop:
solr:
image: solr:9.1
command: bin/solr start -cloud -f

Expand All @@ -110,5 +82,4 @@ volumes:
redis_data:
history:
logs:
solr-term_data:
solr-prop_data:
solr_data:

0 comments on commit af1d7e5

Please sign in to comment.