Flask auto reload inside docker


I found this tips when i developed flask inside docker, with this method we can make docker auto reload when change some code or under development

  flaskweb:
    build: ./apps
    container_name: flask-apps
    ports:
      - 7100:7100
    environment:
      PORT: 7100
      FLASK_DEBUG: 1
    restart: always
    volumes: ['./apps:/usr/src/app/'] <-- apps is my flask folder
    depends_on:
      - db