Introduce Docker Compose development stack with TimescaleDB and NATS services. Update README with usage instructions for local development. Upgrade Go version to 1.25.0 and update dependencies. Refactor configuration for NATS consumer rules and enhance Telegram database schema with TimescaleDB support.

This commit is contained in:
windyboy
2025-11-15 09:46:29 +08:00
parent 359e7694ab
commit 4f16bd6d90
8 changed files with 159 additions and 25 deletions
+25
View File
@@ -104,6 +104,31 @@ tasks:
- echo "Linting code..."
- golangci-lint run
up:
desc: Start TimescaleDB + NATS dev stack
cmds:
- echo "Starting dev infrastructure..."
- podman compose -f docker-compose.dev.yml up -d
down:
desc: Stop dev compose stack and remove containers
cmds:
- echo "Stopping dev infrastructure..."
- podman compose -f docker-compose.dev.yml down
dev-run:
desc: Run receiver locally against dev stack
deps:
- up
cmds:
- >
CAATSM_NATS_URL=nats://localhost:4222
CAATSM_POSTGRES_URL=postgres://caatsm:caatsm@localhost:5432/aviation?sslmode=disable
CAATSM_TELEMETRY_ENABLED=true
CAATSM_TELEMETRY_ENDPOINT=localhost:4318
GO_ENV=dev
go run ./cmd/main listen
help:
desc: Show this help message