Add persisted db volume

This commit is contained in:
Mike Conrad
2025-05-20 10:14:54 -04:00
parent aa70f99727
commit 274fcf9a5c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,4 @@
---
name: sentry name: sentry
services: services:
scraper: scraper:
@ -8,7 +9,8 @@ services:
volumes: volumes:
- ./:/app - ./:/app
- node_modules:/app/node_modules - node_modules:/app/node_modules
command: node ace serve --watch command: /bin/bash -c "echo 'hello' && node ace migration:run --force && node ace serve --watch"
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy

View File

@ -35,6 +35,8 @@ services:
start_period: 5s start_period: 5s
networks: networks:
- database - database
volumes:
- pg_data:/var/lib/postgresql/data
grafana: grafana:
image: grafana/grafana:latest image: grafana/grafana:latest
labels: labels:
@ -59,3 +61,5 @@ networks:
driver: bridge driver: bridge
redis: redis:
driver: bridge driver: bridge
volumes:
pg_data: {}