aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r--docker-compose.yaml23
1 files changed, 21 insertions, 2 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 4b6468f1..af882428 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,15 +60,20 @@ 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
build:
context: .
dockerfile: dev/Dockerfile
- volumes:
- - .:/app:ro
+ volumes: # Don't do .:/app here to ensure project venv from host doens't overwrite venv in image
+ - ./botcore:/app/botcore:ro
+ - ./bot:/app/bot:ro
tty: true
+ depends_on:
+ - web
env_file:
- .env
environment: