This is a tiny Flask application reimplementing a specific API function (organism listing) of Apollo, to make it run way faster.
See GMOD/Apollo#2626 for more details on why we implemented it.
A typical docker-compose.yml to run this app looks like that:
version: '3.7'
services:
apolpi:
image: quay.io/galaxy-genome-annotation/apolpi
environment:
SQLALCHEMY_DATABASE_URI: "postgresql://username:password@localhost:5432/apollo"
You need to configure your reverse proxy (Nginx for example) to redirect the traffic for this specific API endpoint, like this:
location /apollo/organism/findAllOrganisms {
proxy_pass http://127.0.0.1:80/organism/findAllOrganisms;
}
The rest of the API traffic need to be proxied to the normal Apollo application as usual.
- SQLALCHEMY_DATABASE_URI Connection Uri to the postgres database of Apollo