Make the address for exporting metrics configurable
parent
c09052eb4c
commit
c6fe0c2350
|
@ -2,9 +2,17 @@
|
||||||
# exactly these overrides get applied to the main file.
|
# exactly these overrides get applied to the main file.
|
||||||
# tl;dr: strings and numbers get overwritten, lists get concatenated
|
# tl;dr: strings and numbers get overwritten, lists get concatenated
|
||||||
services:
|
services:
|
||||||
|
# Expose PostgreSQL TCP port
|
||||||
|
postgres:
|
||||||
|
ports:
|
||||||
|
- "0.0.0.0:15432:5432"
|
||||||
|
|
||||||
|
# Change the default number of indexer threads
|
||||||
record-indexer:
|
record-indexer:
|
||||||
environment:
|
environment:
|
||||||
INDEXER_WORKERS: 15
|
INDEXER_WORKERS: 15
|
||||||
|
|
||||||
|
# Enable PDS discovery via a relay
|
||||||
consumer:
|
consumer:
|
||||||
environment:
|
environment:
|
||||||
CONSUMER_RELAYS: "https://bsky.network"
|
CONSUMER_RELAYS: "https://bsky.network"
|
||||||
|
|
|
@ -15,8 +15,6 @@ services:
|
||||||
start_interval: 3s
|
start_interval: 3s
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
ports:
|
|
||||||
- "0.0.0.0:15432:5432"
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: bluesky
|
POSTGRES_DB: bluesky
|
||||||
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:?specify password in .env file}"
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:?specify password in .env file}"
|
||||||
|
@ -51,7 +49,7 @@ services:
|
||||||
PLC_METRICS_PORT: '8080'
|
PLC_METRICS_PORT: '8080'
|
||||||
PLC_POSTGRES_URL: "postgres://postgres:${POSTGRES_PASSWORD}@db/bluesky?sslmode=disable"
|
PLC_POSTGRES_URL: "postgres://postgres:${POSTGRES_PASSWORD}@db/bluesky?sslmode=disable"
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:11004:8080"
|
- "${METRICS_ADDR:-0.0.0.0}:11004:8080"
|
||||||
command: [ "--log-level=0" ]
|
command: [ "--log-level=0" ]
|
||||||
|
|
||||||
lister:
|
lister:
|
||||||
|
@ -77,7 +75,7 @@ services:
|
||||||
LISTER_POSTGRES_URL: "postgres://postgres:${POSTGRES_PASSWORD}@db/bluesky?sslmode=disable"
|
LISTER_POSTGRES_URL: "postgres://postgres:${POSTGRES_PASSWORD}@db/bluesky?sslmode=disable"
|
||||||
ATP_PLC_ADDR: "http://plc:8080"
|
ATP_PLC_ADDR: "http://plc:8080"
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:11001:8080"
|
- "${METRICS_ADDR:-0.0.0.0}:11001:8080"
|
||||||
command: [ "--log-level=0" ]
|
command: [ "--log-level=0" ]
|
||||||
consumer:
|
consumer:
|
||||||
build:
|
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.
|
# 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"
|
ATP_PLC_ADDR: "http://plc:8080"
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:11002:8080"
|
- "${METRICS_ADDR:-0.0.0.0}:11002:8080"
|
||||||
command: [ "--log-level=0" ]
|
command: [ "--log-level=0" ]
|
||||||
|
|
||||||
record-indexer:
|
record-indexer:
|
||||||
|
@ -133,7 +131,7 @@ services:
|
||||||
INDEXER_WORKERS: 50
|
INDEXER_WORKERS: 50
|
||||||
ATP_PLC_ADDR: "http://plc:8080"
|
ATP_PLC_ADDR: "http://plc:8080"
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:11003:8080"
|
- "${METRICS_ADDR:-0.0.0.0}:11003:8080"
|
||||||
command: [ "--log-level=0" ]
|
command: [ "--log-level=0" ]
|
||||||
|
|
||||||
query-exporter:
|
query-exporter:
|
||||||
|
@ -145,7 +143,7 @@ services:
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
ports:
|
ports:
|
||||||
- "0.0.0.0:9560:9560"
|
- "${METRICS_ADDR:-0.0.0.0}:9560:9560"
|
||||||
links:
|
links:
|
||||||
- postgres:postgres
|
- postgres:postgres
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
POSTGRES_PASSWORD='some password'
|
POSTGRES_PASSWORD='some password'
|
||||||
DATA_DIR=
|
DATA_DIR=
|
||||||
CSV_DIR=
|
CSV_DIR=
|
||||||
|
METRICS_ADDR=
|
||||||
|
|
Loading…
Reference in New Issue