added volumes_from kwarg to run_launcher

This commit is contained in:
Ben Varick 2025-11-07 09:28:46 -08:00
parent 0b15018722
commit d32c2b4d33
Signed by: ben
SSH key fingerprint: SHA256:jWnpFDAcacYM5aPFpYRqlsamlDyKNpSj3jj+k4ojtUo
2 changed files with 6 additions and 6 deletions

View file

@ -24,11 +24,11 @@ run_launcher:
- MOBILITY_DB_REFRESH_TOKEN - MOBILITY_DB_REFRESH_TOKEN
network: dagster network: dagster
container_kwargs: container_kwargs:
volumes: # Make docker client accessible to any launched containers as well volumes_from:
- dagster_code
volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /tmp/io_manager_storage:/tmp/io_manager_storage - /tmp/io_manager_storage:/tmp/io_manager_storage
- /home/ben/code/gtfs-dagster/data:/opt/dagster/app/data
- /home/ben/code/gtfs-dagster/config:/opt/dagster/app/config
run_storage: run_storage:
module: dagster_postgres.run_storage module: dagster_postgres.run_storage

View file

@ -44,9 +44,9 @@ services:
MOBILITY_DB_REFRESH_TOKEN: ${MOBILITY_DB_REFRESH_TOKEN} MOBILITY_DB_REFRESH_TOKEN: ${MOBILITY_DB_REFRESH_TOKEN}
env_file: env_file:
- .env - .env
volumes: volumes: # these volumes are also passed on to the containers that are spawned to run the assets.
- ./data:/opt/dagster/app/data - ${DATA_DIRECTORY}:/opt/dagster/app/data
- ./config:/opt/dagster/app/config - ${CONFIG_DIRECTORY}:/opt/dagster/app/config
networks: networks:
- dagster - dagster