multiple fylrs in one Linux
Arrange docker and a reverse proxy to avoid conflicts with multiple fylrs
Last updated
Arrange docker and a reverse proxy to avoid conflicts with multiple fylrs
Last updated
Our default recommended fylr Installation has one fylr directly listening to port 443/80 for http(s). If you want multiple fylrs you need to direct web traffic to the correct one. We present one example here with Apache webserver used as reverse proxy.
To somewhat reduce performance issues, only one indexer and only one PostgreSQL is used for all fylrs in this example.
install
install
e.g. for Debian 12:
apt install -y snapd
log out and back in again, to ensure snap’s paths are updated correctly
snap install snapd
apt-get remove certbot
snap install --classic certbot
type -a certbot || ln -s /snap/bin/certbot /usr/local/bin/
install Apache 2
e.g. for Debian 12: apt-get install -y apache2 ; a2enmod ssl rewrite proxy_http
We assume bash
and Debian 12 in our examples.
Use the following docker-compose.yml
as a starting point:
Replace all strings that have EXAMPLE
in it. E.g. with vim: vim docker-compose.yml
Download all software and start the indexer and SQL database service:
Do all the rest of the instructions for the first fylr instance. Then repeat all of it for the second.
Choose unique names and ports and put them into bash variables. Use the same as you used in docker-compose.yml
.
... certbot in the last command will configure the https part of the reverse proxy in Apache.
Replace all strings in fylr.yml
that have EXAMPLE
in it. E.g. with vim:
vim $DIR/config/fylr/fylr.yml
Repeat for each additional fylr instance the whole part from "For each fylr instance" to here.
A maintain script and cron job, as in the , are not provided by us, as we do not have sufficient experience with this multi-fylr-setup. Use the recommended installation instead, when possible.