mirror of
https://github.com/fosrl/newt.git
synced 2026-03-26 20:46:41 +00:00
feat: Add .env.example file and update docker-compose to use environment variables
This commit is contained in:
5
.env.example
Normal file
5
.env.example
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Copy this file to .env and fill in your values
|
||||||
|
# Required for connecting to Pangolin service
|
||||||
|
PANGOLIN_ENDPOINT=https://example.com
|
||||||
|
NEWT_ID=changeme-id
|
||||||
|
NEWT_SECRET=changeme-secret
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ nohup.out
|
|||||||
*.iml
|
*.iml
|
||||||
certs/
|
certs/
|
||||||
newt_arm64
|
newt_arm64
|
||||||
|
.env
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ services:
|
|||||||
newt:
|
newt:
|
||||||
build: .
|
build: .
|
||||||
image: newt:dev
|
image: newt:dev
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
OTEL_SERVICE_NAME: newt
|
OTEL_SERVICE_NAME: newt
|
||||||
NEWT_METRICS_PROMETHEUS_ENABLED: "true"
|
NEWT_METRICS_PROMETHEUS_ENABLED: "true"
|
||||||
@@ -19,13 +21,18 @@ services:
|
|||||||
OTEL_EXPORTER_OTLP_INSECURE: "true"
|
OTEL_EXPORTER_OTLP_INSECURE: "true"
|
||||||
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: "cumulative"
|
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: "cumulative"
|
||||||
NEWT_ADMIN_ADDR: "0.0.0.0:2112"
|
NEWT_ADMIN_ADDR: "0.0.0.0:2112"
|
||||||
|
# Base NEWT configuration
|
||||||
|
PANGOLIN_ENDPOINT: ${PANGOLIN_ENDPOINT}
|
||||||
|
NEWT_ID: ${NEWT_ID}
|
||||||
|
NEWT_SECRET: ${NEWT_SECRET}
|
||||||
|
LOG_LEVEL: "DEBUG"
|
||||||
ports:
|
ports:
|
||||||
- "2112:2112"
|
- "2112:2112"
|
||||||
depends_on:
|
depends_on:
|
||||||
- collector
|
- collector
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v2.55.0
|
image: prom/prometheus:v3.6.0
|
||||||
volumes:
|
volumes:
|
||||||
- ./examples/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
- ./examples/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user