version: "3.8" services: pdf-converter: build: context: . dockerfile: Dockerfile ports: - "4000:5000" volumes: - ./uploads:/app/uploads - ./outputs:/app/outputs - ./logs:/app/logs - .:/app environment: - FLASK_ENV=development - FLASK_APP=app.py - TESSDATA_PREFIX=/app/tessdata command: > sh -c "watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- python app.py"