Browse Source

[Compose] Expose Solr to 127.0.0.1

andryyy 6 years ago
parent
commit
b178326736
2 changed files with 3 additions and 0 deletions
  1. 2 0
      docker-compose.yml
  2. 1 0
      generate_config.sh

+ 2 - 0
docker-compose.yml

@@ -415,6 +415,8 @@ services:
       restart: always
       restart: always
       volumes:
       volumes:
         - solr-vol-1:/opt/solr/server/solr/dovecot-fts/data
         - solr-vol-1:/opt/solr/server/solr/dovecot-fts/data
+      ports:
+        - "${SOLR_PORT:-127.0.0.1:8983}:8983"
       environment:
       environment:
         - TZ=${TZ}
         - TZ=${TZ}
         - SOLR_HEAP=${SOLR_HEAP:-1024}
         - SOLR_HEAP=${SOLR_HEAP:-1024}

+ 1 - 0
generate_config.sh

@@ -148,6 +148,7 @@ POPS_PORT=995
 SIEVE_PORT=4190
 SIEVE_PORT=4190
 DOVEADM_PORT=127.0.0.1:19991
 DOVEADM_PORT=127.0.0.1:19991
 SQL_PORT=127.0.0.1:13306
 SQL_PORT=127.0.0.1:13306
+SOLR_PORT=127.0.0.1:8983
 
 
 # Your timezone
 # Your timezone