services: api: build: . command: ["flask", "--app", "./src/main", "--debug", "run", "--host=0.0.0.0"] ports: - 5000:5000 develop: watch: - action: sync path: ./src target: /app/src - action: rebuild path: requirements.txt - action: rebuild path: Dockerfile - action: rebuild path: compose.yaml