#Bun --watch doesnt works on docker-compose?
1 messages · Page 1 of 1 (latest)
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
isnt you supposed to use --watch flag before run command maybe thats the issue
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
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
yes
not worked :/