-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 1.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (30 loc) · 1.23 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
30
31
# EvuProxy web UI — host network so nginx can reach the API at 127.0.0.1:9847 (no 0.0.0.0 bind).
# Prerequisite: evuproxy-api.service on 127.0.0.1:9847 (default install).
#
# docker compose up --build
#
# UI: http://127.0.0.1:9080 — remote: SSH -L 9080:127.0.0.1:9080
# LAN testing: EVUPROXY_UI_LISTEN=0.0.0.0:9080 docker compose up -d
services:
evuproxy-ui:
build:
context: .
dockerfile: docker/Dockerfile
network_mode: host
restart: unless-stopped
healthcheck:
# Same listen target as nginx: EVUPROXY_UI_LISTEN is set in `environment` below.
# If the bind address is 0.0.0.0, curl uses 127.0.0.1 (0.0.0.0 is not a valid client target).
test:
[
"CMD-SHELL",
'ADDR=$${EVUPROXY_UI_LISTEN:-127.0.0.1:9080}; HOST=$${ADDR%:*}; PORT=$${ADDR##*:}; [ "$$HOST" = "0.0.0.0" ] && HOST=127.0.0.1; curl -fsS "http://$$HOST:$$PORT/healthz" | grep -q ok || exit 1',
]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
environment:
EVUPROXY_API_UPSTREAM: ${EVUPROXY_API_UPSTREAM:-127.0.0.1:9847}
# Optional: copy `.env.example` → `.env` (see EVUPROXY_UI_LISTEN there).
EVUPROXY_UI_LISTEN: ${EVUPROXY_UI_LISTEN:-127.0.0.1:9080}