persistent storage for database

This commit is contained in:
2024-12-23 11:36:46 +01:00
parent f9c83d29b3
commit e2964c95da
3 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@@ -2,4 +2,7 @@
storage/
.idea/
.ipynb_checkpoints/
__pycache__/
trash/
db/
.DS_Store

View File

@@ -40,6 +40,8 @@ services:
<<: *postgres_env
networks:
- dagster
volumes:
- /opt/dagster/db/:/var/lib/postgresql/data/
# This service runs dagit, which loads your user code from the user code container.
# Since our instance uses the QueuedRunCoordinator, any runs submitted from dagit will be put on

1
src/app/sync.sh Normal file → Executable file
View File

@@ -2,6 +2,7 @@
rsync -av /opt/dagster/src/app/vinyl/ \
/Volumes/dagster/src/app/vinyl/ \
--include='*.py' \
--include='*requirements.txt' \
--exclude='__pycache__/' \
-progress \
--delete $*