You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
467 B

8 months ago
8 months ago
8 months ago
8 months ago
  1. version: "3.8"
  2. services:
  3. pdf-converter:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. ports:
  8. - "4000:5000"
  9. volumes:
  10. - ./uploads:/app/uploads
  11. - ./outputs:/app/outputs
  12. - ./logs:/app/logs
  13. - .:/app
  14. environment:
  15. - FLASK_ENV=development
  16. - FLASK_APP=app.py
  17. - TESSDATA_PREFIX=/app/tessdata
  18. command: >
  19. sh -c "watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- python app.py"