Make the address for exporting metrics configurable

main
Max Ignatenko 2024-04-13 19:01:51 +01:00
parent c09052eb4c
commit c6fe0c2350
3 changed files with 14 additions and 7 deletions

View File

@ -2,9 +2,17 @@
# exactly these overrides get applied to the main file.
# tl;dr: strings and numbers get overwritten, lists get concatenated
services:
# Expose PostgreSQL TCP port
postgres:
ports:
- "0.0.0.0:15432:5432"
# Change the default number of indexer threads
record-indexer:
environment:
INDEXER_WORKERS: 15
# Enable PDS discovery via a relay
consumer:
environment:
CONSUMER_RELAYS: "https://bsky.network"

View File

@ -15,8 +15,6 @@ services:
start_interval: 3s
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "0.0.0.0:15432:5432"
environment:
POSTGRES_DB: bluesky
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:?specify password in .env file}"
@ -51,7 +49,7 @@ services:
PLC_METRICS_PORT: '8080'
PLC_POSTGRES_URL: "postgres://postgres:${POSTGRES_PASSWORD}@db/bluesky?sslmode=disable"
ports:
- "0.0.0.0:11004:8080"
- "${METRICS_ADDR:-0.0.0.0}:11004:8080"
command: [ "--log-level=0" ]
lister:
@ -77,7 +75,7 @@ services:
LISTER_POSTGRES_URL: "postgres://postgres:${POSTGRES_PASSWORD}@db/bluesky?sslmode=disable"
ATP_PLC_ADDR: "http://plc:8080"
ports:
- "0.0.0.0:11001:8080"
- "${METRICS_ADDR:-0.0.0.0}:11001:8080"
command: [ "--log-level=0" ]
consumer:
build:
@ -103,7 +101,7 @@ services:
# CONSUMER_RELAYS: "https://bsky.network" # Effectively doubles inbound network traffic. Set this in docker-compose.override.yml if needed.
ATP_PLC_ADDR: "http://plc:8080"
ports:
- "0.0.0.0:11002:8080"
- "${METRICS_ADDR:-0.0.0.0}:11002:8080"
command: [ "--log-level=0" ]
record-indexer:
@ -133,7 +131,7 @@ services:
INDEXER_WORKERS: 50
ATP_PLC_ADDR: "http://plc:8080"
ports:
- "0.0.0.0:11003:8080"
- "${METRICS_ADDR:-0.0.0.0}:11003:8080"
command: [ "--log-level=0" ]
query-exporter:
@ -145,7 +143,7 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "0.0.0.0:9560:9560"
- "${METRICS_ADDR:-0.0.0.0}:9560:9560"
links:
- postgres:postgres
depends_on:

View File

@ -1,3 +1,4 @@
POSTGRES_PASSWORD='some password'
DATA_DIR=
CSV_DIR=
METRICS_ADDR=