-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
72 lines (71 loc) · 2.06 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
version: '3.1'
services:
db:
container_name: ${NAME}-db
image: postgres:17
restart: unless-stopped
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=mir
volumes:
- ${DB_DATA}:/var/lib/postgresql/data/
ports:
- ${DB_PORT}:5432
solr:
container_name: ${NAME}-solr
build: mir-webapp/src/main/solr
restart: unless-stopped
volumes:
- ${SOLR_DATA}:/var/solr/data
ports:
- ${SOLR_HTTP}:8983
environment:
- SOLR_ADMIN_USER=${SOLR_ADMIN_USER}
- SOLR_ADMIN_PASSWORD=${SOLR_ADMIN_PASSWORD}
- SOLR_SEARCH_USER=${SOLR_SEARCH_USER}
- SOLR_SEARCH_PASSWORD=${SOLR_SEARCH_PASSWORD}
- SOLR_INDEX_USER=${SOLR_INDEX_USER}
- SOLR_INDEX_PASSWORD=${SOLR_INDEX_PASSWORD}
tika:
container_name: ${NAME}-tika
image: apache/tika:2.9.2.1-full
restart: unless-stopped
ports:
- ${TIKA_PORT}:9998
mir:
container_name: ${NAME}-mir
build: ./
restart: unless-stopped
environment:
- APP_CONTEXT=${APP_CONTEXT}
- JDBC_NAME=${DB_USER}
- JDBC_PASSWORD=${DB_PASSWORD}
- JDBC_DRIVER=org.postgresql.Driver
- JDBC_URL=jdbc:postgresql://db:5432/mir
- SOLR_URL=http://solr:8983
- SOLR_CORE=mir
- SOLR_CLASSIFICATION_CORE=mir-classifications
- ENABLE_SOLR_CLOUD=true
- SOLR_ADMIN_USER=${SOLR_ADMIN_USER}
- SOLR_ADMIN_PASSWORD=${SOLR_ADMIN_PASSWORD}
- SOLR_SEARCH_USER=${SOLR_SEARCH_USER}
- SOLR_SEARCH_PASSWORD=${SOLR_SEARCH_PASSWORD}
- SOLR_INDEX_USER=${SOLR_INDEX_USER}
- SOLR_INDEX_PASSWORD=${SOLR_INDEX_PASSWORD}
- TIKASERVER_URL=http://tika:9998/
- XMX=${MIR_XMX}
- XMS=${MIR_XMS}
- MIR_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8295
- FIX_FILE_SYSTEM_RIGHTS=false
volumes:
- ${MIR_HOME}:/mcr/home/
- ${MIR_DATA}:/mcr/data/
- ${MIR_LOGS}:/mcr/logs/
depends_on:
- db
- solr
ports:
- ${MIR_HTTP}:8080
- ${MIR_AJP}:8009
- ${MIR_DEBUG}:8295