add volume to db image
This commit is contained in:
parent
7fa3d7075e
commit
0462ef45c1
|
|
@ -1 +1,2 @@
|
||||||
heatmaps
|
heatmaps
|
||||||
|
db
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,5 @@ config/*
|
||||||
ogndevices
|
ogndevices
|
||||||
|
|
||||||
heatmaps
|
heatmaps
|
||||||
|
|
||||||
|
db
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue