aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 2089275873a9b8b8f143057df7787045703c1b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
version: '3'
services:
  python-api-server:
    image: quotengrote/python-api-server:latest
    ports:
      - "5040:5000"
    volumes:
      - 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: