39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# Local development: a single predictor instance, metrics off.
|
|
#
|
|
# docker compose up --build
|
|
# curl localhost:8080/ready
|
|
#
|
|
# First start downloads the latest GFS 0.5° run (~8.9 GiB) into the named
|
|
# volume; subsequent starts reuse it. The init service chowns the volume so
|
|
# the non-root image (uid 65532) can write to it.
|
|
services:
|
|
init-perms:
|
|
image: busybox:1.36
|
|
command: ["sh", "-c", "mkdir -p /data && chown -R 65532:65532 /data"]
|
|
volumes:
|
|
- predictor-data:/data
|
|
|
|
predictor:
|
|
build:
|
|
context: .
|
|
args:
|
|
VERSION: dev
|
|
REVISION: local
|
|
image: stratoflights-predictor:dev
|
|
depends_on:
|
|
init-perms:
|
|
condition: service_completed_successfully
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
PREDICTOR_DATA_DIR: /data
|
|
PREDICTOR_METRICS_ENABLED: "false"
|
|
PREDICTOR_LOG_LEVEL: debug
|
|
# Mount and point at an elevation dataset for ground-level descent:
|
|
# PREDICTOR_ELEVATION_DATASET: /srv/ruaumoko-dataset
|
|
volumes:
|
|
- predictor-data:/data
|
|
# - ./elevation:/srv/ruaumoko-dataset:ro
|
|
|
|
volumes:
|
|
predictor-data:
|