-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
85 lines (80 loc) · 1.94 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
services:
db:
image: mysql:8.0
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: unless-stopped
stop_grace_period: 1m30s
env_file:
- docker-compose.env
volumes:
- db:/var/lib/mysql
seek:
image: ghcr.io/nfdi4health/ldh:${LDH_RELEASE:-latest}
command: docker/entrypoint.sh
restart: unless-stopped
environment:
RAILS_ENV: production
SOLR_PORT: 8983
SOLR_HOST: solr
NO_ENTRYPOINT_WORKERS: 1
RAILS_RELATIVE_URL_ROOT: "/"
env_file:
- docker-compose.env
volumes:
- filestore:/seek/filestore
- cache:/seek/tmp/cache
- ${PWD}/${NGINX_CONF:-nginx.conf.http}:/seek/docker/nginx.conf.template
- ${PWD}/${DHO_TERMS:-standard}.en.yml:/seek/config/locales/overrides/dho-terms.en.yml
ports:
- ${SEEK_PORT:-3000}:3000
depends_on:
- db
- solr
links:
- db
- solr
workers:
image: ghcr.io/nfdi4health/ldh:${LDH_RELEASE:-latest}
command: docker/start_workers.sh
restart: unless-stopped
environment:
RAILS_ENV: production
SOLR_PORT: 8983
SOLR_HOST: solr
RAILS_RELATIVE_URL_ROOT: "/"
env_file:
- docker-compose.env
volumes:
- filestore:/seek/filestore
- cache:/seek/tmp/cache
depends_on:
- db
- solr
links:
- db
- solr
solr:
image: fairdom/seek-solr:8.11
restart: unless-stopped
environment:
SOLR_JAVA_MEM: -Xms512m -Xmx1024m
GC_TUNE: "-XX:-UseLargePages"
LOG4J_FORMAT_MSG_NO_LOOKUPS: "true"
volumes:
- solr:/var/solr/
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- seek
- /opt/solr/server/solr/configsets/seek_config
volumes:
filestore:
name: ${COMPOSE_PROJECT_NAME}_filestore
external: true
db:
name: ${COMPOSE_PROJECT_NAME}_db
external: true
solr:
external: false
cache:
external: false