diff options
author | 2022-09-18 13:50:49 +0100 | |
---|---|---|
committer | 2022-09-18 13:50:49 +0100 | |
commit | 030d15e3a0ae2ecc84ca368aa11ed5d81a3ee202 (patch) | |
tree | b75a3b879b6c640325affece77ea850299709f6c /docker-compose.yaml | |
parent | Merge pull request #125 from python-discord/dpy-2.0 (diff) | |
parent | Remove Unused Steps In CI (diff) |
Merge pull request #135 from python-discord/poetry-1.2.0
Bump poetry to 1.2.0 in CI & the example project
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r-- | docker-compose.yaml | 23 |
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: |