Running this command works (runs the server and I can access the app on the browser):
docker run -p 3000:3000 -v /c/users/hubbles/sources:/app sources_web rails s -b 0.0.0.0 -p 3000
but running this doesn’t (runs the server but I cannot access the app on the browser):
docker-compose run web
this is my docker-compose.yml file:
version: '3'
services:
web:
image: sources_web
command: rails s -b 0.0.0.0 -p 3000
volumes:
- C:\users\hubbles\sources:/app
ports:
- "3000:3000"
bash:
image: sources_web
command: /bin/bash
volumes:
- C:\users\hubbles\sources:/app
ports:
- "3000:3000"
and this is my .env file:
COMPOSE_CONVERT_WINDOWS_PATHS=1
By accessing the container I can see that the volume is correctly mounted (can touch
files to my Windows directory, cat
changes on files).
Any ideas? Does Docker Compose runs on different permissions than Docker Engine or something?
Thanks!