Set the necessary environment variables in .env, for instance:
FILESTORE_DIR=/data/filestore
PG_USER=postgres
PG_PASSWORD=postgres
PG_DB=web_dev
PG_DB_TEST=web_test
ENVIRONMENT=dev
TESTING=True
BACKEND_CORS_ORIGINS=["http://localhost:8004", "https://uploads.example.com"]
docker-compose up --build -d
docker-compose exec web python app/db.py
docker-compose exec web python -m pytest
In development mode, OpenAPI documentation is available at
An alternative implementation would be to use the tus resumable upload protocol https://github.com/tus/tus-resumable-upload-protocol
It is also possible to use a tus module for the Varnish HTTP Cache