2026-06-02 13:50:27 -05:00
|
|
|
# OpenConcho web UI — DEV-FORWARD compose (builds from THIS repo).
|
2026-05-28 16:06:03 -05:00
|
|
|
#
|
2026-06-02 13:59:04 -05:00
|
|
|
# make up # build from source + run → http://localhost:8080
|
|
|
|
|
# make prod # pull the published image instead (see docker-compose.prod.yml)
|
|
|
|
|
# make down # stop + remove (dev or prod)
|
|
|
|
|
# make clean # down + drop the locally built image
|
2026-05-29 11:47:19 -05:00
|
|
|
#
|
2026-06-02 13:50:27 -05:00
|
|
|
# The SPA issues all Honcho calls same-origin to /api; nginx forwards each to the
|
|
|
|
|
# URL named in the per-request X-Honcho-Upstream header (no browser CORS). Seed the
|
|
|
|
|
# first instance with OPENCONCHO_DEFAULT_HONCHO_URL:
|
2026-05-29 11:47:19 -05:00
|
|
|
#
|
2026-06-02 13:59:04 -05:00
|
|
|
# OPENCONCHO_DEFAULT_HONCHO_URL=https://honcho.example.net make up
|
2026-06-02 13:50:27 -05:00
|
|
|
#
|
|
|
|
|
# To fold into an existing Honcho Compose stack, set OPENCONCHO_DEFAULT_HONCHO_URL
|
|
|
|
|
# to the api service (e.g. http://api:8000 — nginx resolves it on the compose
|
|
|
|
|
# network) and add `depends_on: { api: { condition: service_healthy } }`.
|
2026-05-28 16:06:03 -05:00
|
|
|
services:
|
|
|
|
|
openconcho:
|
2026-06-02 13:50:27 -05:00
|
|
|
build: .
|
|
|
|
|
image: openconcho-web:local
|
2026-05-28 16:06:03 -05:00
|
|
|
environment:
|
2026-06-02 13:50:27 -05:00
|
|
|
# Absolute URL seeding the first instance; the browser sends it as the
|
|
|
|
|
# X-Honcho-Upstream header and nginx forwards there (no browser CORS).
|
2026-06-02 13:16:30 -05:00
|
|
|
OPENCONCHO_DEFAULT_HONCHO_URL: ${OPENCONCHO_DEFAULT_HONCHO_URL:-http://host.docker.internal:8000}
|
|
|
|
|
# Optional SSRF guard. Unset = forward anywhere (safe for the localhost-only
|
|
|
|
|
# binding below). Set comma-separated host globs before exposing the proxy:
|
|
|
|
|
# OPENCONCHO_UPSTREAM_ALLOWLIST: honcho.example.net,*.honcho.dev
|
|
|
|
|
OPENCONCHO_UPSTREAM_ALLOWLIST: ${OPENCONCHO_UPSTREAM_ALLOWLIST:-}
|
2026-05-28 16:06:03 -05:00
|
|
|
ports:
|
|
|
|
|
- "127.0.0.1:8080:8080"
|
2026-05-29 11:47:19 -05:00
|
|
|
# Lets the default host.docker.internal upstream resolve on Linux too
|
|
|
|
|
# (Docker Desktop / Colima provide it automatically).
|
|
|
|
|
extra_hosts:
|
|
|
|
|
- "host.docker.internal:host-gateway"
|
2026-05-28 16:06:03 -05:00
|
|
|
restart: unless-stopped
|