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