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