From 87924620fd34b30fd800dfcee65b2793a858e3fc Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Thu, 8 Jan 2026 15:52:11 +0100 Subject: [PATCH] move storage dir --- compose.code.yaml | 4 ++-- compose.system.yaml | 3 ++- dagster.yaml | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/compose.code.yaml b/compose.code.yaml index 7dd9740..f12ccbc 100644 --- a/compose.code.yaml +++ b/compose.code.yaml @@ -35,8 +35,8 @@ services: - /opt/dagster/apps/:/code/apps/:ro - /opt/dagster/shared/:/code/shared/:ro - /opt/dagster/logs/:/logs:rw - - /opt/dagster/storage/import/:/storage/import/:ro - - /opt/dagster/storage/deals/:/storage/deals/:rw + # - /mnt/mezzo/scratch/dagster/import/:/storage/import/:ro + - /mnt/mezzo/scratch/dagster/deals/:/storage/deals/:rw networks: - dagster diff --git a/compose.system.yaml b/compose.system.yaml index cba8e6c..d350795 100644 --- a/compose.system.yaml +++ b/compose.system.yaml @@ -6,6 +6,7 @@ x-postgres-env: &postgres_env POSTGRES_DB: ${POSTGRES_DB} x-system-env: &system_env TZ: Europe/Amsterdam + DATA_DIR: ${DATA_DIR} CACHE_DIR: /tmp/cache x-dagster-env: &dagster_env DAGSTER_POSTGRES_HOST: ${POSTGRES_HOST} @@ -26,7 +27,7 @@ x-volumes: &volumes - /opt/dagster/dagster.yaml:/opt/dagster/home/dagster.yaml.template:ro - /opt/dagster/workspace.yaml:/opt/dagster/home/workspace.yaml:ro - /opt/dagster/system/:/code/system/:ro - - /opt/dagster/storage/:/storage/:rw + - /mnt/mezzo/scratch/dagster/:/storage/:rw - /opt/dagster/logs/:/logs:rw - /var/run/docker.sock:/var/run/docker.sock:rw diff --git a/dagster.yaml b/dagster.yaml index fc1e4e5..884ffa1 100644 --- a/dagster.yaml +++ b/dagster.yaml @@ -21,6 +21,7 @@ run_launcher: - DAGSTER_POSTGRES_USER - DAGSTER_POSTGRES_PASSWORD - DAGSTER_POSTGRES_DB + - DATA_DIR - SMTP_SERVER - SMTP_PORT - SMTP_USERNAME @@ -33,8 +34,8 @@ run_launcher: volumes: - /opt/dagster/apps/:/code/apps/:ro - /opt/dagster/shared/:/code/shared/:ro - - /opt/dagster/storage/:/storage/:rw - /opt/dagster/logs/:/logs:rw + - ${DATA_DIR}:/storage/:rw - ${CACHE_DIR}:/cache:rw run_storage: