From b36b54f9e6f78501b7c0e20fabe5c29dff1c0cac Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 15 Dec 2024 01:12:31 +0100 Subject: [PATCH] docker: expose metrics and internal API --- DOCKER.md | 3 +++ docker-compose.yml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/DOCKER.md b/DOCKER.md index 5cbb6e6..b485eb7 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -8,3 +8,6 @@ The Caddy server will listen on `localhost:5004` for the frontend and API, and on `localhost:5005` for the profile URL shortener. + +The backend server listens on `localhost:5006` for unproxied API access, +and `localhost:5007` for metrics. \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 5606760..4fc94bb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,11 @@ services: - "Database:EnablePooling=true" - "Host=0.0.0.0" - "Port=5000" + - "Logging:MetricsPort=5001" restart: unless-stopped + ports: + - "5006:5000" + - "5007:5001" volumes: - ./docker/config.ini:/app/config.ini