feat: polish & windviz & deploy
This commit is contained in:
parent
81b8e763bd
commit
465ad00f7b
78 changed files with 20622 additions and 2154 deletions
39
docker-compose.yml
Normal file
39
docker-compose.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# 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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue