Add persisted db volume
This commit is contained in:
@ -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
|
||||
|
@ -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: {}
|
Reference in New Issue
Block a user