$ docker-compose up -d --build
This will expose the app on port 80 and a Flower server for monitoring Celery workers on port 5555.
To add more Celery workers, start the compose with multiple worker
containers:
$ docker-compose up -d --build --scale worker=3
To shut down:
$ docker-compose down
webapp
: The RNAsamba app, powered by the Flask framework.cleanup
: Executes a script to delete files generated by RNAsamba after 7 days.monitor
: A Flower instance to monitor Celery workers.worker
: A Celery worker to manage asynchronous tasks.redis
: A Redis message broker.
The following environment variables should be edited in the docker-compose.yml
file before starting rnasamba-webapp
in a production environment:
FLASK_SECRET_KEY
: Secret key used by Flask.GUNICORN_CMD_ARGS
: Settings for Gunicorn, such as number of workers.FLOWER_BASIC_AUTH
: HTTP Basic Authentication for Flower.