Docker
Leek is a full stack application built using different technologies and published as a docker image to a public repository on DockerHub
Leek is a multi-services application. during docker container startup, supervisord will start as the process with pid=1
and will start the enabled service and skip the disabled ones relying on LEEK_ENABLE_AGENT
, LEEK_ENABLE_API
,
LEEK_ENABLE_WEB
environment variables.
Before start using Leek in production
- (Optional: only if you enable firebase auth) Setup a new firebase project to be used for authentication between WEB and API, more info.
- Decide what agent mode you want to use, standalone or local
- Decide what elasticsearch db mode you want to use, standalone or local.
Running a local demo with Firebase auth disabled
To experiment with leek, you can run one of these demo docker-compose files:
This is an example of a demo, that includes 4 services:
Leek main application
A RabbitMQ or Redis broker
An elasticsearch node
Demo celery client (publisher)
Demo celery workers (consumer)
After running the services with
docker-compose up
, wait for the services to start and navigate to http://localhost:8000.Create an application with the same name as in
LEEK_AGENT_SUBSCRIPTIONS
, which isleek
.Enjoy the demo
Running a local demo with auth enabled
To experiment with leek, you can run one of these demo docker-compose files:
This is an example of a demo, that includes 4 services:
- Leek main application
- A RabbitMQ or Redis broker
- An elasticsearch node
- Demo celery client (publisher)
- Demo celery workers (consumer)
Things to consider when running the demo:
change app service
LEEK_API_OWNER_ORG
to your GSuite domain if leek owner is a GSuite Organisation (Organisation demo) or use your GMail username (the one before @gmail.com) if leek owner is an individual (Individual demo).change app service
LEEK_API_WHITELISTED_ORGS
to a list of GSuite organisations domains allowed to use/authenticate to leek using GSuite account (Organisation demo) or to a list of GMail usernames (the one before @gmail.com) to allow multiple GMail accounts (Individuals demo)After running the services with
docker-compose up
, wait for the services to start and navigate to http://localhost:8000.Create an application with the same name as in
LEEK_AGENT_SUBSCRIPTIONS
, which isleek
.Enjoy the demo