docker: expose metrics and internal API

This commit is contained in:
sam 2024-12-15 01:12:31 +01:00
parent 507b9c3f4c
commit b36b54f9e6
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 7 additions and 0 deletions

View file

@ -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.

View file

@ -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