1.9 KiB
Infrastructure standard
The local scaffold uses three independent Compose projects: core application, ML, and monitoring. Starting the core project does not start monitoring or ML.
Upstream container images use the requested moving latest or alpine tags where the image publishes them. These tags can change; read the current Compose and Dockerfile references instead of recording an old component version. Keep Go at exact version 1.26.8 in go.mod, toolchain declarations, and the backend build image. Application dependency lockfiles remain checked in and should not be removed when image tags float.
The core frontend container serves static assets with Nginx and proxies /api to Go. The default host binding is loopback at port 8080. This scaffold does not terminate production TLS. Grafana is also bound to loopback at port 3000.
The ML Compose file binds to 127.0.0.1:8000 by default. A remote ML host needs an explicit private bind address, restricted firewall rules, and a deliberate scrape target. Leave ML_METRICS_TARGET empty when Prometheus must not scrape a remote ML host.
Start the core project before monitoring because monitoring joins its Docker network. The monitoring Compose project collects only the explicitly configured core services. Do not expose PostgreSQL, backend metrics, Prometheus, Loki, exporters, or the Docker socket proxy publicly.
Use the repository's Compose and observability Make targets to render and validate configuration. Keep secrets in a local .env or deployment secret store, not in committed examples. Do not claim TLS, public availability, multi-node reliability, or a successful deploy based on Compose syntax checks.
The PostgreSQL exporter role is created only by first-volume initialization when its optional credentials are present. Setting those values after the database volume already exists does not rerun initialization.