Skip to content

File Changes Not Reflecting in Docker Container #3246

Open
@AbhigyanSrivastav

Description

@AbhigyanSrivastav

File Changes Not Reflecting in Docker Container

Environment:

  • OS: Windows
  • WSL2: Enabled
  • Docker: Using Docker Desktop with WSL2 integration

Description:
I am trying to set up this project locally using Docker with the provided development Docker Compose setup. However, I am facing an issue where changes made to the files on my local machine are not reflecting in the Docker container.

Docker Compose Configuration:

services:
  mongo:
    image: mongo:5.0
    volumes:
      - dbdata:/data/db
  app:
    build:
      context: ./
      dockerfile: Dockerfile
      target: development
    environment:
      - MONGO_URL=mongodb://mongo:27017/p5js-web-editor
    volumes:
      - .:/usr/src/app
      - /usr/src/app/node_modules
    ports:
      - '8000:8000'
      - '8002:8002'
    depends_on:
      - mongo
volumes:
  dbdata:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions