Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Changes Not Reflecting in Docker Container #3246

Open
AbhigyanSrivastav opened this issue Oct 13, 2024 · 6 comments
Open

File Changes Not Reflecting in Docker Container #3246

AbhigyanSrivastav opened this issue Oct 13, 2024 · 6 comments
Labels

Comments

@AbhigyanSrivastav
Copy link
Contributor

AbhigyanSrivastav commented Oct 13, 2024

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:
Copy link

welcome bot commented Oct 13, 2024

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

@AbhigyanSrivastav AbhigyanSrivastav changed the title ERESOLVE Dependency Conflict with ESLint and eslint-config-airbnb File Changes Not Reflecting in Docker Container Oct 13, 2024
@adwaitanand
Copy link

Hey @AbhigyanSrivastav were you able to resolve this issue? Even i am facing the exact same issue need help

@shauryatiwari1
Copy link

Hi , i have created a PR that i think should solve this problem , review required

@shauryatiwari1
Copy link

Hey! , I have checked this issue again and i think there is no problem now , the file syncing works even without ":cached" (though i think it will fix that if its not working without it) . I think that this issue #3246 can be closed now!!

@Harshit-7373
Copy link
Contributor

@AbhigyanSrivastav @raclim
File syncing in Docker Compose with WSL2 may experience performance bottlenecks. To enhance file sharing efficiency, We need to use :cached option in the volume configuration. This change needs to be done in the docker-compose.yml file.

Soon i will create a PR which will fix this issue.

Harshit-7373 added a commit to Harshit-7373/p5.js-web-editor that referenced this issue Feb 8, 2025
File Changes Not Reflecting in Docker Container processing#3246

1. Updating the docker-compose.yml file helped solve the issue.

2. We need to use :cached option in the volume configuration.

Github - Harshit-7373
@Harshit-7373 Harshit-7373 mentioned this issue Feb 8, 2025
4 tasks
@raclim
Copy link
Collaborator

raclim commented Feb 11, 2025

Thanks for raising this issue!

I want to note that I think adding the flag might not be the full resolution to this issue, as it seems that adding the :cached flag is no longer needed as it's already set as a default in Docker Desktop 2.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants