File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed
Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 2929 env :
3030 - name : SPRING_PROFILES_ACTIVE
3131 value : api, postgres, remote-solr
32+ - name : SPRING_DATA_SOLR_HOST
33+ value : http://klass-solr:8983/solr
34+
3235
3336 accessPolicy :
34- inbound :
37+ outbound :
3538 rules :
3639 - application : klass-solr
3740
Original file line number Diff line number Diff line change 1818 cpu : 20m
1919 memory : 400Mi
2020
21+ accessPolicy :
22+ inbound :
23+ rules :
24+ - application : klass-solr
25+
2126 liveness :
2227 path : /solr/admin/cores?action=STATUS
2328 port : 8983
Original file line number Diff line number Diff line change @@ -108,18 +108,15 @@ services:
108108 POSTGRES_USER : " klass"
109109 POSTGRES_INSTANCE : ${POSTGRES_INSTANCE}
110110 solr :
111- image : solr:5.5.2
111+ build :
112+ context : .
113+ dockerfile : ../klass-solr/Dockerfile
112114 container_name : solr
113115 profiles : [ search ]
114116 ports :
115117 - " 8983:8983"
116118 volumes :
117119 - solr_data:/opt/solr/server/solr
118- - ../klass-solr/src/main/resources/solr/embedded/Klass:/opt/solr/server/solr/mycores/Klass
119- command :
120- - solr-precreate
121- - Klass
122- - /opt/solr/server/solr/custom_config
123120 mem_limit : 4g
124121volumes :
125122 pgdata :
Original file line number Diff line number Diff line change 1+ FROM solr:5.5.2
2+
3+ COPY src/main/resources/solr/embedded/Klass /opt/solr/server/solr/mycores/Klass
4+
5+ CMD ["solr-precreate" , "Klass" ]
You can’t perform that action at this time.
0 commit comments