2023-04-12 16:16:35 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
2023-04-12 16:28:25 +02:00
|
|
|
python-api-server:
|
2023-04-13 11:34:16 +02:00
|
|
|
image: quotengrote/python-api-server:latest
|
2023-04-12 16:16:35 +02:00
|
|
|
ports:
|
2023-04-12 16:28:25 +02:00
|
|
|
- "5040:5000"
|
2023-04-12 16:16:35 +02:00
|
|
|
volumes:
|
2023-04-13 13:38:23 +02:00
|
|
|
- uploads:/uploads
|
2023-04-13 11:29:47 +02:00
|
|
|
environment:
|
2023-04-13 12:37:15 +02:00
|
|
|
# FLASK_DEBUG: 1 # for debugging
|
|
|
|
# FLASK_APP: app # for debugging
|
|
|
|
MAX_CONTENT_LENGTH: 10 # in MB; default 5MB
|
2023-04-13 12:36:54 +02:00
|
|
|
UPLOAD_DIRECTORY: /uploads # where to store the uploaded files; should be mapped to a docker volume; default "/uploads"
|
2023-04-13 12:37:15 +02:00
|
|
|
AUTH_TOKEN: myuploadtoken # token used for authenticating
|
2023-04-13 13:51:45 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
uploads:
|