Enabling Prometheus exporter for Dawarich app and Sidekiq. #529
+7
-4
@@ -1280,7 +1280,7 @@ services:
|
||||
- ${DOCKER_VOLUME_STORAGE}/backups/:/backups
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
dawarich-app:
|
||||
command: ["bin/rails", "server", "-p", "3000", "-b", "::"]
|
||||
command: bin/dev
|
||||
container_name: dawarich-app
|
||||
depends_on:
|
||||
dawarich-pg-db:
|
||||
@@ -1308,11 +1308,13 @@ services:
|
||||
APPLICATION_PROTOCOL: http
|
||||
DISTANCE_UNIT: km
|
||||
SECRET_KEY_BASE: ${DAWARICH_SECRET_KEY_BASE}
|
||||
PROMETHEUS_EXPORTER_ENABLED: false
|
||||
PROMETHEUS_EXPORTER_ENABLED: true
|
||||
PROMETHEUS_EXPORTER_HOST: 0.0.0.0
|
||||
PROMETHEUS_EXPORTER_PORT: 9394
|
||||
ENABLE_TELEMETRY: false # More on telemetry: https://dawarich.app/docs/tutorials/telemetry
|
||||
SELF_HOSTED: true
|
||||
expose:
|
||||
- 9394
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -1343,7 +1345,6 @@ services:
|
||||
swag.uptime-kuma.monitor.maxretries: 5
|
||||
ports:
|
||||
- 63561:3000
|
||||
- 9394:9394 # Prometheus exporter, uncomment if needed
|
||||
profiles: ["rinoa-apps"]
|
||||
restart: on-failure
|
||||
stdin_open: true
|
||||
@@ -1400,7 +1401,7 @@ services:
|
||||
DATABASE_USERNAME: dawarich
|
||||
DISTANCE_UNIT: km
|
||||
ENABLE_TELEMETRY: false # More on telemetry: https://dawarich.app/docs/tutorials/telemetry
|
||||
PROMETHEUS_EXPORTER_ENABLED: false
|
||||
PROMETHEUS_EXPORTER_ENABLED: true
|
||||
PROMETHEUS_EXPORTER_HOST: dawarich-app
|
||||
PROMETHEUS_EXPORTER_PORT: 9394
|
||||
RAILS_ENV: production
|
||||
@@ -1409,6 +1410,8 @@ services:
|
||||
SECRET_KEY_BASE: ${DAWARICH_SECRET_KEY_BASE}
|
||||
SELF_HOSTED: true
|
||||
STORE_GEODATA: true
|
||||
expose:
|
||||
- 9394
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pgrep -f sidekiq"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user