Add private Docker UI relay for Nginx Proxy Manager
This commit is contained in:
@@ -55,3 +55,29 @@ services:
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
|
||||
ui-proxy:
|
||||
image: mqtt5-test-backend:${IMAGE_TAG:?Set IMAGE_TAG}
|
||||
entrypoint: ["/ui-proxy"]
|
||||
command: ["--listen", "172.20.0.1:18082"]
|
||||
network_mode: host
|
||||
user: "10001:10001"
|
||||
init: true
|
||||
read_only: true
|
||||
cap_drop: [ALL]
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://172.20.0.1:18082/healthz >/dev/null"]
|
||||
interval: 10s
|
||||
timeout: 4s
|
||||
retries: 6
|
||||
start_period: 15s
|
||||
logging:
|
||||
driver: local
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
|
||||
Reference in New Issue
Block a user