aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-05 22:35:31 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-06 21:07:53 +0100
commit78d82791afb8fd3da4f767393b918ee401b41aec (patch)
treedcacbcdb5af41fe8469edf00fa0e90f0649f41a7 /docker-compose.yml
parentMerge pull request #581 from python-discord/Pin-platform-in-Dockerfile (diff)
Initialise metricity at runtime
Currently the bot cannot start in dev as the site errors, saying that metricity doesn't exist. Previously this note existing was fine, unless you needed to use metricity data. With the recent addition of django-prometheus, metricity is now required on boot. This PR moves the init of metricity from a docker-compose volume, into running of the site. This means that external projects using site, that don't have access to the init.sql file to mount a volume, now also init metricity.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml2
1 files changed, 0 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 05867a46..37678949 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -18,8 +18,6 @@ services:
POSTGRES_DB: pysite
POSTGRES_PASSWORD: pysite
POSTGRES_USER: pysite
- volumes:
- - ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
web:
build: