In the case of using docker-compose for a multi-co...
# announcements
c
In the case of using docker-compose for a multi-container deployment, is it possible to attach a volume to the new new docker containers created by the run launcher? I can attach the volume to the initial docker_example_pipeline service in
docker-compose.yml
but the new containers that it spins up only use the
Dockerfile_pipelines
instructions and putting a MOUNT command in there won’t actually attach it
d
hi Cameron - this sounds possible, but might require an extension to the DockerRunLauncher class to support additional config. As long as it's possible to express in a Dockerfile or in an argument to containers.create in the docker python API, it should be possible.
c
I don’t think its possible in just the dockerfile, but it does seem possible for containers.create, it’d just require the ability to pass a dict to the ‘volumes’ arg
Yea it seems like it’d work if it was possible to control what was passed to an additional ‘volumes’ arg here: https://github.com/dagster-io/dagster/blob/632fd2d13f23fee8a0d1ef7373bf10e7d9a95fa[…]/libraries/dagster-docker/dagster_docker/docker_run_launcher.py