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",
|
"telemetry_events",
|
||||||
metadata,
|
metadata,
|
||||||
Column("id", Integer, primary_key=True),
|
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("char_tag", String, nullable=True),
|
||||||
Column("session_id", String, nullable=False, index=True),
|
Column("session_id", String, nullable=False, index=True),
|
||||||
Column("timestamp", DateTime(timezone=True), nullable=False, index=True),
|
Column("timestamp", DateTime(timezone=True), nullable=False, index=True),
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ services:
|
||||||
|
|
||||||
# TimescaleDB service for telemetry data storage
|
# TimescaleDB service for telemetry data storage
|
||||||
db:
|
db:
|
||||||
image: timescale/timescaledb:latest-pg14
|
image: timescale/timescaledb:2.19.3-pg14
|
||||||
container_name: dereth-db
|
container_name: dereth-db
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: dereth
|
POSTGRES_DB: dereth
|
||||||
|
|
@ -44,6 +44,12 @@ services:
|
||||||
- timescale-data:/var/lib/postgresql/data
|
- timescale-data:/var/lib/postgresql/data
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue