81 lines
1.9 KiB
YAML
81 lines
1.9 KiB
YAML
# Local/dev runtime reference. Hetzner production bootstrap now starts from Terraform + cloud-init + k3s.
|
|
services:
|
|
redpanda:
|
|
image: docker.redpanda.com/redpandadata/redpanda:v24.3.9
|
|
command:
|
|
- redpanda
|
|
- start
|
|
- --overprovisioned
|
|
- --smp
|
|
- "1"
|
|
- --memory
|
|
- "1G"
|
|
- --reserve-memory
|
|
- "0M"
|
|
- --node-id
|
|
- "0"
|
|
- --check=false
|
|
- --kafka-addr
|
|
- internal://0.0.0.0:9092,external://0.0.0.0:19092
|
|
- --advertise-kafka-addr
|
|
- internal://redpanda:9092,external://127.0.0.1:19092
|
|
- --pandaproxy-addr
|
|
- internal://0.0.0.0:8082
|
|
- --advertise-pandaproxy-addr
|
|
- internal://redpanda:8082
|
|
ports:
|
|
- "127.0.0.1:19092:19092"
|
|
volumes:
|
|
- redpanda-data:/var/lib/redpanda/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "rpk cluster health | grep -q 'Healthy: *true'"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 20s
|
|
|
|
near-intents-ingest:
|
|
build: .
|
|
command: ["node", "src/apps/near-intents-ingest.mjs"]
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
redpanda:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
dummy-reactor:
|
|
build: .
|
|
command: ["node", "src/apps/dummy-reactor.mjs"]
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
redpanda:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
dummy-executor:
|
|
build: .
|
|
command: ["node", "src/apps/dummy-executor.mjs"]
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
redpanda:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
volumes:
|
|
- executor-state:/var/lib/unrip/executor-state
|
|
|
|
dummy-consumer:
|
|
build: .
|
|
command: ["node", "src/apps/dummy-consumer.mjs"]
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
redpanda:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
redpanda-data:
|
|
executor-state:
|