Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
70 lines (60 loc) · 4.62 KB
/
Copy path.env.example
File metadata and controls
70 lines (60 loc) · 4.62 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Template for local environment configuration.
# Copy this file to .env (which is git-ignored) and fill in your values.
# Never commit secrets — use a secrets manager (HashiCorp Vault, AWS SSM, etc.) in production.
#
# ⚠️ .env and .env.example MUST have the same KEYS (values may differ).
# When adding or removing a variable, update both files together.
# ── PostgreSQL ────────────────────────────────────────────────────────────────
DB_HOST=localhost # hostname visible from the app (localhost when running outside Compose)
DB_PORT=5432 # default PostgreSQL port
DB_NAME=customer-service # database name — must match V1__init.sql
DB_USER=demo # superuser for local dev only — use a restricted role in production
DB_PASSWORD=demo # local dev only — use a secrets manager (Vault, AWS SSM) in production
# ── Application ───────────────────────────────────────────────────────────────
SERVER_PORT=8080 # Spring Boot embedded Tomcat port
APP_NAME=customer-service # used as the Docker image name and Spring app name
IMAGE_TAG=latest # Docker image tag pushed to the registry (override with a SHA for deploys)
# ── Kafka ─────────────────────────────────────────────────────────────────────
KAFKA_PORT=9092 # Kafka broker port (KRaft mode, no ZooKeeper)
# ── Security ──────────────────────────────────────────────────────────────────
API_KEY=demo-api-key-2026 # X-API-Key header for M2M auth — use a secrets manager in production
# ── Observability ─────────────────────────────────────────────────────────────
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 # OTLP collector for Tempo/Loki/Mimir (LGTM stack)
# ── GitLab Observability (ADR-0054 — 2nd OTLP sink, active) ───────────────────
# Dual-export of traces/metrics/logs to GitLab's managed Observability UI
# (beta, free during beta period, unlimited).
#
# ACTIVE 2026-04-23 on the iris-7 group (group-id 130289716). The OTel
# Collector config hardcodes the group endpoint as a default via
# `${env:GITLAB_OBSERVABILITY_ENDPOINT:-...}` syntax, so telemetry flows to
# GitLab's UI out of the box for this repo.
#
# Override only if :
# - You fork the repo → point at your own group endpoint (format
# `https://<your-group-id>.otel.gitlab-o11y.com:14318`)
# - You want to disable the GitLab dual-sink → remove the `otlphttp/*-gitlab`
# entries from `service.pipelines.*.exporters` in
# infra/observability/otelcol-override.yaml
#
# No auth token needed in the beta (the group-id in the subdomain is the
# identifier). If/when GA adds bearer-token auth, uncomment the header
# block in otelcol-override.yaml.
# GITLAB_OBSERVABILITY_ENDPOINT=https://<your-group-id>.otel.gitlab-o11y.com:14318
# ── SonarCloud ────────────────────────────────────────────────────────────────
# Generate at https://sonarcloud.io/account/security → Generate Token.
# Used by `./run.sh sonar` and by the SonarCloud CI job when run locally.
SONAR_TOKEN=your-sonarcloud-token
# ── OVH Cloud (canonical 2nd K8s target per ADR-0053) ─────────────────────────
# Generate the 3 API tokens at https://eu.api.ovh.com/createToken/ with
# narrow scope: GET/POST/PUT/DELETE on /cloud/project/* only.
# Validity: 0 (= unlimited; rotate manually every 6 months — set a calendar
# reminder). NEVER commit real values; bin/cluster/ovh/up.sh expects them
# in the shell environment, not in this file.
OVH_APPLICATION_KEY=your-ovh-application-key
OVH_APPLICATION_SECRET=your-ovh-application-secret-shown-once
OVH_CONSUMER_KEY=your-ovh-consumer-key
# 32-char hex from https://www.ovh.com/manager/#/cloud/project/<HERE>
OVH_PROJECT_ID=00000000000000000000000000000000
# Optional overrides (defaults: GRA9 region — HDS-eligible — and iris7-prod cluster)
# OVH_REGION=GRA9
# OVH_CLUSTER_NAME=iris7-prod