aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-11-14 22:24:49 -0500
committerBobby <[email protected]>2023-11-14 22:24:49 -0500
commitb5bc2804426ce1ace3b87dbdd5ad9e703a1c4884 (patch)
tree725873a2294d04dd695129314027e3ebf9533365
parent651a7aa656da9fbb30f880c1936a583965dc769d (diff)
downloadthatcomputerscientist-b5bc2804426ce1ace3b87dbdd5ad9e703a1c4884.tar.xz
thatcomputerscientist-b5bc2804426ce1ace3b87dbdd5ad9e703a1c4884.zip
Update Dockerfile and Read DB from ENV
-rw-r--r--Dockerfile2
-rw-r--r--thatcomputerscientist/settings.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 880eb583..0709f0f0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -56,6 +56,8 @@ ARG REDIS_PASSWORD=${REDIS_PASSWORD}
ENV REDIS_PASSWORD=${REDIS_PASSWORD}
ARG REDIS_PORT=${REDIS_PORT}
ENV REDIS_PORT=${REDIS_PORT}
+ARG DB_DATABASE=${SQLITE_DB_NAME}
+ENV DB_DATABASE=${SQLITE_DB_NAME}
RUN mkdir -p /shifoo
diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py
index 1ca6b2df..673464e5 100644
--- a/thatcomputerscientist/settings.py
+++ b/thatcomputerscientist/settings.py
@@ -157,7 +157,7 @@ CHANNEL_LAYERS = {
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ 'NAME': os.path.join(BASE_DIR, os.environ.get('SQLITE_DB_NAME')),
}
}