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
services:
scraper:
@ -8,7 +9,8 @@ services:
volumes:
- ./:/app
- 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:
db:
condition: service_healthy

View File

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