Change timescaleDB bind mount to docker volume for easier deployment.
This commit is contained in:
parent
17e1f54ab2
commit
3a421b1344
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /opt/opendtu-logger/database:/var/lib/postgresql/data
|
- opendtu_db:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${PG_USER}"]
|
test: ["CMD-SHELL", "pg_isready -U ${PG_USER}"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
@ -62,3 +62,4 @@ networks:
|
||||||
attachable: true
|
attachable: true
|
||||||
volumes:
|
volumes:
|
||||||
opendtu_logger_grafana:
|
opendtu_logger_grafana:
|
||||||
|
opendtu_db:
|
||||||
|
|
Loading…
Reference in a new issue