Files
heardlog/docker-compose.yml
Joakim Svensson 42ba6feed4 first commit
2026-04-26 17:20:58 +02:00

33 lines
1013 B
YAML

services:
db:
image: timescale/timescaledb-ha:pg16-all
environment:
POSTGRES_DB: aprs
POSTGRES_USER: aprs
POSTGRES_PASSWORD: ${DB_PASSWORD:-aprs}
volumes:
- ./data/postgres:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aprs -d aprs"]
interval: 10s
timeout: 5s
retries: 10
collector:
build: ./collector
ports:
- "8085:8080" # expose API ??? put Caddy/nginx in front for TLS
environment:
DATABASE_URL: postgresql://aprs:${DB_PASSWORD:-aprs}@db:5432/aprs
API_KEY: ${API_KEY} # shared secret with forwarder
STATION_CALL: ${STATION_CALL:-SA6ANW-1}
APRS_IS_CALLSIGN: ${STATION_CALL:-SA6ANW-1}
APRS_IS_PASSCODE: ${APRS_IS_PASSCODE:--1}
APRS_IS_FILTER: ${APRS_IS_FILTER:-r/58.35/14.05/200}
LOG_LEVEL: ${LOG_LEVEL:-INFO}
restart: unless-stopped
depends_on:
db:
condition: service_healthy