Files
go-weatherstation/docker-compose.yml
2026-01-26 12:40:47 +11:00

26 lines
566 B
YAML

services:
timescaledb:
image: timescale/timescaledb:latest-pg16
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: micrometeo
ports:
- "5432:5432"
volumes:
- tsdata:/var/lib/postgresql/data
# runs on first DB initialization only
- ./db/init:/docker-entrypoint-initdb.d:ro
ingestd:
build:
context: .
dockerfile: Dockerfile
depends_on:
- timescaledb
restart: unless-stopped
volumes:
- ./config.yaml:/app/config.yaml:ro
volumes:
tsdata: