Files
go-weatherstation/docker-compose.yml
2026-01-27 16:51:58 +11:00

29 lines
598 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
ports:
- "8080:8080"
volumes:
- ./config.yaml:/app/config.yaml:ro
volumes:
tsdata: