fixed crash and autorestart
This commit is contained in:
parent
09404da121
commit
d9b3b403da
2 changed files with 8 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ telemetry_events = Table(
|
|||
"telemetry_events",
|
||||
metadata,
|
||||
Column("id", Integer, primary_key=True),
|
||||
Column("character_name", String, nullable=False),
|
||||
Column("character_name", String, nullable=False, index=True),
|
||||
Column("char_tag", String, nullable=True),
|
||||
Column("session_id", String, nullable=False, index=True),
|
||||
Column("timestamp", DateTime(timezone=True), nullable=False, index=True),
|
||||
|
|
|
|||
|
|
@ -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