Install MySQL, using the installation package of MySQL. Debian will install MariaDB as default database server when no extra sources are added. The latest version can be found on the APT pages of MySQL
CREATE
USER 'solodb_admin'@'172.%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON `solodb_production`.* TO
'solodb_admin'@'172.%';
FLUSH
PRIVILEGES;
Install SOLR (version number might be higher, can be checked on the Solr Download page)
Change SOLR so it listens to all interfaces (and not only to localhost)
sudo nano /etc/default/solr.in.sh
Change the following settings
# By default the start script uses "localhost"; override the hostname here
# for production SolrCloud environments to control the hostname exposed to cluster state
SOLR_HOST="0.0.0.0"
# Increase Java Heap as needed to support your indexing / query needs
SOLR_HEAP="4g"
# Sets the network interface the Solr binds to. To prevent administrators from
# accidentally exposing Solr more widely than intended, this defaults to 127.0.0.1.
# Administrators should think carefully about their deployment environment and
# set this value as narrowly as required before going to production. In
# environments where security is not a concern, 0.0.0.0 can be used to allow
# Solr to accept connections on all network interfaces.
SOLR_JETTY_HOST="0.0.0.0"
sudo su && su solr
ssh-keygen #Upload the key to Github to prevent API rate limits
git clone https://github.com/jield-webdev/solodb-solr /var/solr/data
exit
sudo service solr restart
Create database and import the basic database into the mysql-server
mysql -u root -p
Download a copy of an empty database
create
database solodb_production;
use
solodb_production;
source .
/emtpy_solodb_database.sql;
Traefik Configuration
This setup uses Traefik to manage the incoming traffic and redirect it to the SoloDB app docker container. Create a folder where the docker compose config file can be stored