-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (29 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
29 lines (29 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Run OpenConcho's web UI with `docker compose up`.
#
# Standalone: serves the SPA on http://localhost:8080 and reverse-proxies the
# Honcho API under the same origin (no browser CORS). By default it points at a
# Honcho running on the host at :8000 — override HONCHO_UPSTREAM for anything else:
#
# HONCHO_UPSTREAM=https://honcho.example.net docker compose up
#
# To fold this into an existing Honcho Compose stack, drop the `openconcho`
# service into that project, set HONCHO_UPSTREAM to the api service
# (e.g. http://api:8000), and add `depends_on: { api: { condition: service_healthy } }`.
services:
openconcho:
image: ghcr.io/offendingcommit/openconcho-web:latest
# Or build from this repo instead of pulling the published image:
# build: .
environment:
# nginx reverse-proxies /v3 and /health to this upstream (the Honcho API).
HONCHO_UPSTREAM: ${HONCHO_UPSTREAM:-http://host.docker.internal:8000}
# The SPA defaults its Honcho base URL to its own origin, so requests flow
# through the proxy above — no browser CORS, token never leaves the origin.
OPENCONCHO_DEFAULT_HONCHO_URL: same-origin
ports:
- "127.0.0.1:8080:8080"
# Lets the default host.docker.internal upstream resolve on Linux too
# (Docker Desktop / Colima provide it automatically).
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped