galaxy-genome-annotation / apolpi

Partial, faster reimplementation of Apollo API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apolpi

Docker Repository on Quay Lint

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.

Running with docker-compose

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"

Configuring Nginx proxy

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.

Required env variables

  • SQLALCHEMY_DATABASE_URI Connection Uri to the postgres database of Apollo

About

Partial, faster reimplementation of Apollo API

License:MIT License


Languages

Language:Python 87.2%Language:Dockerfile 11.2%Language:Shell 1.6%