add volume

This commit is contained in:
Michael Grote 2023-04-13 13:38:23 +02:00
parent f576ec6b1b
commit 089351e77e

View file

@ -5,10 +5,12 @@ services:
ports:
- "5040:5000"
volumes:
- ./uploads:/uploads
- uploads:/uploads
environment:
# FLASK_DEBUG: 1 # for debugging
# FLASK_APP: app # for debugging
MAX_CONTENT_LENGTH: 10 # in MB; default 5MB
UPLOAD_DIRECTORY: /uploads # where to store the uploaded files; should be mapped to a docker volume; default "/uploads"
AUTH_TOKEN: myuploadtoken # token used for authenticating
volumes:
uploads: