From e198e1b18d75ee02c8418ab83839f692b19fd9a4 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 12 Mar 2024 16:30:32 -0600 Subject: [PATCH] 3.6 --- .env.example | 1 + .gitignore | 2 +- compose.yaml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 1b819cd..3649c3d 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ BOT_TOKEN=bot_token DB_USERNAME=databaseuser DB_PASSWORD=databasepass +DB_LOCATION=/external/data diff --git a/.gitignore b/.gitignore index 607877c..a163c03 100644 --- a/.gitignore +++ b/.gitignore @@ -99,7 +99,7 @@ ipython_config.py # PEP 582; used by e.g. github.com/David-OConnor/pyflow __pypackages__/ - +data # Celery stuff celerybeat-schedule celerybeat.pid diff --git a/compose.yaml b/compose.yaml index d5fc25a..9b46b21 100644 --- a/compose.yaml +++ b/compose.yaml @@ -20,3 +20,5 @@ services: - MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD} ports: - "27017:27017" + volumes: + - ${DB_LOCATION}:/data/db