29 lines
835 B
YAML

services:
# Build-only: shared base image (toolchain + r0vm) referenced as the
# `risc0_base` named context below. It has no long-running command, so it
# only gets built — it exits immediately if started.
risc0_base:
image: lez/risc0_base
build:
context: ../../..
dockerfile: lez/docker/risc0-base.Dockerfile
indexer_service:
image: lez/indexer_service
build:
context: ../../..
dockerfile: lez/indexer/service/Dockerfile
additional_contexts:
risc0_base: "service:risc0_base"
container_name: indexer_service
ports:
- "8779:8779"
volumes:
# Mount configuration
- ./configs/docker/indexer_config.json:/etc/indexer_service/indexer_config.json
# Mount data volume
- indexer_data:/var/lib/indexer_service
volumes:
indexer_data: