add volume to db image

This commit is contained in:
Peter Buchegger 2022-02-01 21:26:41 +01:00
parent 7fa3d7075e
commit 0462ef45c1
4 changed files with 6 additions and 0 deletions

View File

@ -1 +1,2 @@
heatmaps heatmaps
db

2
.gitignore vendored
View File

@ -14,3 +14,5 @@ config/*
ogndevices ogndevices
heatmaps heatmaps
db

View File

@ -1,2 +1,3 @@
FROM postgres FROM postgres
COPY misc/database/tables/* /docker-entrypoint-initdb.d/ COPY misc/database/tables/* /docker-entrypoint-initdb.d/
VOLUME /var/lib/postgresql/data

View File

@ -73,3 +73,5 @@ services:
POSTGRES_USER: root POSTGRES_USER: root
POSTGRES_PASSWORD: foobar POSTGRES_PASSWORD: foobar
POSTGRES_DB: trackdirect POSTGRES_DB: trackdirect
volumes:
- $PWD/db:/var/lib/postgresql/data