fixed crash and autorestart
This commit is contained in:
parent
09404da121
commit
d9b3b403da
2 changed files with 8 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ services:
|
|||
|
||||
# TimescaleDB service for telemetry data storage
|
||||
db:
|
||||
image: timescale/timescaledb:latest-pg14
|
||||
image: timescale/timescaledb:2.19.3-pg14
|
||||
container_name: dereth-db
|
||||
environment:
|
||||
POSTGRES_DB: dereth
|
||||
|
|
@ -44,6 +44,12 @@ services:
|
|||
- timescale-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue