From d32c2b4d336653a31bcab2f31a15ee888145556b4833cd2b28a46247c60eaac1 Mon Sep 17 00:00:00 2001 From: Ben Varick Date: Fri, 7 Nov 2025 09:28:46 -0800 Subject: [PATCH] added volumes_from kwarg to run_launcher --- dagster.yaml | 6 +++--- docker-compose.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dagster.yaml b/dagster.yaml index b5ac980..4f4718e 100644 --- a/dagster.yaml +++ b/dagster.yaml @@ -24,11 +24,11 @@ run_launcher: - MOBILITY_DB_REFRESH_TOKEN network: dagster 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 - /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: module: dagster_postgres.run_storage diff --git a/docker-compose.yaml b/docker-compose.yaml index cdb1af9..c128a99 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -44,9 +44,9 @@ services: MOBILITY_DB_REFRESH_TOKEN: ${MOBILITY_DB_REFRESH_TOKEN} env_file: - .env - volumes: - - ./data:/opt/dagster/app/data - - ./config:/opt/dagster/app/config + volumes: # these volumes are also passed on to the containers that are spawned to run the assets. + - ${DATA_DIRECTORY}:/opt/dagster/app/data + - ${CONFIG_DIRECTORY}:/opt/dagster/app/config networks: - dagster