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

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"