Skip to content

Change Solr Port #8

@jasi110

Description

@jasi110

I'm using this docker-compose.yml, but I need to change the port for the Solr instances so they are unique. I'm trying to use podman in Fedora 32. I mounted /var/solr to my host and updated the solr.xml in each solr to have a unique Jetty port, I also mounted /etc/default, and created a "solr" file in each solr that states a unique SOLR_PORT. The "solr" file is a copy of solr.in.sh renamed to just "solr" and has the SOLR_PORT line uncommented and set to the same value as the Jetty port. I also modified the docker-compose.yml file to use 8981:8981 for solr1, 8982:8982 for solr2, and 8983 for solr3. So the ports match in solr.xml, "solr", and docker-compose.yml. However, it always seems to use 8983, since only the solr 3 container runs and the others fail with:
2020-06-16 08:45:44.922 WARN (main) [ ] o.e.j.x.XmlConfiguration => java.security.PrivilegedActionException: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8983
Caused by: java.net.BindException: Address already in use

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions