#Bun --watch doesnt works on docker-compose?

1 messages · Page 1 of 1 (latest)

rain wagon
#

my docker-compose.yml is right and the mount routing is working right, but the watchmode doesnt looks to work on container

#

here is my docker compose service:

websockets:
  build:
    context: ./websockets
    dockerfile: local.Dockerfile
  env_file:
    - .env.local
  networks:
    - tempname
  ports:
    - 4010:4010
  depends_on:
    database:
      condition: service_healthy
  volumes:
    - ./websockets/src:/usr/src/websockets/src
  restart: always
  entrypoint:
    [
      "bun",
      "run",
      "--watch",
      "/usr/src/websockets/src/index.ts"
    ]
#

i know the mount routing is working, as i ran "docker compose exec cat /usr/src/websockets/src/index.ts" and the code is updated

reef badger
#

isnt you supposed to use --watch flag before run command maybe thats the issue

rain wagon
#

hmmmm

#

you sure?

#

locally (outside the container) it works well

#

on the docs the --watch argument is passed this way too

#

btw ill give a try

#

:/ not worked

wooden herald
#

This would happen if the volume is a network drive

#

There’s a GitHub issue where someone links to a docker compose yaml file that has a solution

#

Trying to find it

rain wagon
wooden herald
#

yes

rain wagon
#

not worked :/