-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 947 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: "3.8"
services:
gateway:
build: .
ports:
- "8080:8080"
environment:
PORT: "8080"
WS_HEARTBEAT_MS: "30000"
MAX_PAYLOAD_BYTES: "1024"
LOG_LEVEL: "info"
STORAGE_ADAPTER: "postgres"
DATABASE_URL: "postgresql://tracker:devpassword@postgres:5432/spatial_tracking"
STORAGE_RAW_RETENTION_DAYS: "7"
STORAGE_1M_RETENTION_DAYS: "90"
STORAGE_1H_RETENTION_DAYS: "365"
STORAGE_1D_RETENTION_DAYS: "2555"
STORAGE_COMPACTION_INTERVAL_MS: "300000"
STORAGE_COMPACTION_BATCH_SIZE: "10000"
TIMESCALEDB_ENABLED: "true"
depends_on:
- postgres
restart: unless-stopped
postgres:
image: timescale/timescaledb:latest-pg16
environment:
POSTGRES_DB: spatial_tracking
POSTGRES_USER: tracker
POSTGRES_PASSWORD: devpassword
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: