File size: 1,846 Bytes
b47934a | 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 | # Note: this can only be started using
# docker compose -f docker-compose.infra.yaml -f docker-compose.openmeter.yaml up
#
# Given this is governed by the Makefile, it's fine to not to add all the extends here.
services:
openmeter:
command: openmeter --address 0.0.0.0:8888 --config /etc/openmeter/config.yaml
restart: always
pull_policy: always
depends_on:
kafka:
condition: service_healthy
clickhouse:
condition: service_healthy
postgres:
condition: service_healthy
ports:
- "127.0.0.1:38888:8888"
volumes:
- ./config.yaml:/etc/openmeter/config.yaml
- ./logs/openmeter:/var/log/openmeter/
healthcheck:
test: ["CMD", "wget", "--spider", "http://openmeter:8888/api/v1/debug/metrics"]
interval: 5s
timeout: 3s
retries: 30
sink-worker:
command: openmeter-sink-worker --config /etc/openmeter/config.yaml
restart: always
pull_policy: always
depends_on:
kafka:
condition: service_healthy
clickhouse:
condition: service_healthy
openmeter:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "127.0.0.1:30000:10000"
volumes:
- ./config.yaml:/etc/openmeter/config.yaml
- ./logs/sink-worker:/var/log/openmeter
billing-worker:
command: openmeter-billing-worker --config /etc/openmeter/config.yaml
restart: always
pull_policy: always
depends_on:
kafka:
condition: service_healthy
clickhouse:
condition: service_healthy
postgres:
condition: service_healthy
openmeter:
condition: service_healthy
ports:
- "127.0.0.1:30001:10000"
volumes:
- ./config.yaml:/etc/openmeter/config.yaml
- ./logs/billing-worker:/var/log/openmeter
|