Skip to content

apcamargo/tspex-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tspex-webapp

Build and launch

$ 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

Services

  • webapp: The tspex app, powered by the Flask framework.
  • cleanup: Executes a script to delete files generated by tspex after 7 days.
  • monitor: A Flower instance to monitor Celery workers.
  • worker: A Celery worker to manage asynchronous tasks.
  • redis: A Redis message broker.

Options

The following environment variables should be edited in the docker-compose.yml file before starting tspex-webapp in a production environment: