hello i would like to use debug inside container but i cannot add working "volumes" into docker comopse.xml
file structure in the piscture:
FROM python:3.9-alpine WORKDIR /planner ENV FLASK_APP=app ENV FLASK_RUN_HOST=0.0.0.0 RUN apk add --no-cache gcc musl-dev linux-headers COPY requirements.txt requirements.txt RUN pip install -r requirements.txt EXPOSE 5000 COPY . . CMD ["flask", "run"] compose:
version: "3.7" services: web: build: . restart: always ports: - "5000:5000" volumes: - .:/planner rq-dashboard: image: jaredv/rq-docker:0.0.2 command: rq-dashboard -H rq-server ports: - 9181:9181 rq-worker: image: jaredv/rq-docker:0.0.2 command: rq worker -u redis://rq-server:6379 high normal low deploy: replicas: 3 rq-server: image: redis:alpine ports: - 6379:6379 problem is with:
volumes: - .:/planner could you help me with it?


- ./:/plannerbut be careful as that will also mount the compose file in your container, may be better to have a specific sub directory for thewebservice's volume.code web_1 | * Serving Flask app "app" web_1 | * Environment: production web_1 | WARNING: This is a development server. Do not use it in a production deployment. web_1 | Use a production WSGI server instead. web_1 | * Debug mode: offENV FLASK_ENV=developmentin the Dockerfile to enable the live reloader.