aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-09-10 20:43:21 +0100
committerGravatar Chris Lovering <[email protected]>2022-09-10 20:43:21 +0100
commit3efbae79a275a93fe75fccb46f64408576c4a2cf (patch)
tree37031cde0433307c47bfde17c72ec1ccb8e74f78 /docker-compose.yaml
parentMerge pull request #125 from python-discord/dpy-2.0 (diff)
Add metricity to docker-compose so web doesn't crash loop
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r--docker-compose.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 4b6468f1..51b4a698 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -19,6 +19,20 @@ services:
timeout: 1s
retries: 5
+ metricity:
+ restart: on-failure
+ depends_on:
+ postgres:
+ condition: service_healthy
+ image: ghcr.io/python-discord/metricity:latest
+ env_file:
+ - .env
+ environment:
+ DATABASE_URI: postgres://pysite:pysite@postgres/metricity
+ USE_METRICITY: ${USE_METRICITY-false}
+ volumes:
+ - .:/tmp/bot:ro
+
redis:
<< : *restart_policy
image: redis:5.0.9
@@ -46,6 +60,8 @@ services:
METRICITY_DB_URL: postgres://pysite:pysite@postgres:5432/metricity
SECRET_KEY: suitable-for-development-only
STATIC_ROOT: /var/www/static
+ depends_on:
+ - metricity
bot:
<< : *restart_policy
@@ -55,6 +71,8 @@ services:
volumes:
- .:/app:ro
tty: true
+ depends_on:
+ - web
env_file:
- .env
environment: