-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ef96c8
commit a71ce66
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# mittaridatapumppu-persister | ||
|
||
version: '3.8' | ||
|
||
services: | ||
persister-influxdb: | ||
image: ghcr.io/city-of-helsinki/mittaridatapumppu-persister | ||
build: . | ||
depends_on: | ||
kafka: | ||
condition: service_healthy | ||
restart: unless-stopped | ||
environment: | ||
KAFKA_HOST: "kafka" | ||
KAFKA_PORT: 9092 | ||
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092" | ||
KAFKA_GROUP_ID: "digita_dev" | ||
KAFKA_PARSED_DATA_TOPIC_NAME: "digita.parseddata" | ||
KAFKA_RAW_DATA_TOPIC_NAME: "digita.rawdata" | ||
DEVICE_REGISTRY_URL: "http://devreg:8000/api/v1" | ||
DEVICE_REGISTRY_TOKEN: b48455759b691baf3b811ba437ce9e581fc0a37e | ||
INFLUXDB_URL: "https://influx.fvh.io" | ||
INFLUXDB_ORG: "Testing" | ||
INFLUXDB_BUCKET: "DigitaTest" | ||
INFLUXDB_TOKEN: | ||
LOG_LEVEL: "DEBUG" | ||
DEBUG: 1 | ||
DEV_SERVER: 1 | ||
kafka: | ||
image: bitnami/kafka:3.4 | ||
ports: | ||
- "9092:9092" | ||
volumes: | ||
- "kafka_data:/bitnami" | ||
environment: | ||
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "true" | ||
# Kafka KRaft settings | ||
KAFKA_CFG_NODE_ID: 0 | ||
KAFKA_CFG_PROCESS_ROLES: "controller,broker" | ||
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: "0@kafka:9093" | ||
# Listeners | ||
KAFKA_CFG_LISTENERS: "PLAINTEXT://:9092,CONTROLLER://:9093" | ||
KAFKA_CFG_ADVERTISED_LISTENERS: "PLAINTEXT://:9092" | ||
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT" | ||
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: "CONTROLLER" | ||
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: "PLAINTEXT" | ||
healthcheck: | ||
interval: 10s | ||
retries: 3 | ||
test: kafka-topics.sh --bootstrap-server kafka:9092 --topic hc --create --if-not-exists && kafka-topics.sh --bootstrap-server kafka:9092 --topic hc --describe | ||
timeout: 5s | ||
|
||
volumes: | ||
kafka_data: |