37 lines
895 B
YAML
37 lines
895 B
YAML
# Kerf — full-stack Docker Compose
|
|
# Runs the vectorization engine + web app behind nginx reverse-proxy.
|
|
#
|
|
# Usage:
|
|
# docker compose up -d # start all services
|
|
# docker compose ps # check health
|
|
# docker compose down # tear down
|
|
|
|
services:
|
|
kerf-engine:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile.engine
|
|
ports:
|
|
- "8000:8000"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-sf", "http://localhost:8000/engine/health"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
start_period: 10s
|
|
retries: 3
|
|
|
|
kerf-app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile.app
|
|
ports:
|
|
- "3000:80"
|
|
depends_on:
|
|
kerf-engine:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:80/"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
start_period: 5s
|
|
retries: 3
|