-
Notifications
You must be signed in to change notification settings - Fork 0
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
Docker volumes in docker compose not working #10
Comments
Or maybe the |
do you have steps of replication? when you run docker compose, it uses the path of the host, isn't it? That other notes seems interesting though |
yeah you maybe are right with the local workspace folder env set in https://github.com/codersforcauses/automated-setups/blob/main/cfc-devenv-base/.devcontainer/devcontainer.json |
There ended up being (not really) a bug with docker desktop for mac which made it so the bind mounts didn't work microsoft/vscode-remote-release#5388 (comment) in the docker compose. The solution was to use the |
Are you proposing to use django app dockerised and running in another container? I'm not opposed to it, but there's a couple of advantages to running django in the devcontainer rather than in another container. Some of the advantages i see are:
|
Can confirm I was able to dockerise entire apps with the env var, so I'm closing this issue |
Basic Information
I want to be able to specify docker volumes in a docker compose and run
docker compose up
in a dev container to start everything up. The bind mounts don't seem to work in this case, and it's likely something to do with the docker-in-docker situation.Other Information
https://github.com/h4l/dev-container-docker-compose-volume-or-bind
The text was updated successfully, but these errors were encountered: