Skip to content

Commit

Permalink
add docker compose file to spin up all necessary services together
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastheis committed Nov 6, 2024
1 parent 0f5ebf3 commit f96af8e
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions permissionless-batches/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: permissionless-batches

services:
relayer:
build:
context: ../
dockerfile: permissionless-batches/recovery_permissionless_batches.Dockerfile
container_name: permissionless-batches-relayer
volumes:
- ./conf/relayer:/app/conf
command: "--config /app/conf/config.json"
depends_on:
db:
condition: service_healthy

db:
image: postgres:17.0
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: postgres
POSTGRES_DB: scroll
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 1s
timeout: 1s
retries: 10
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"

coordinator:
build:
context: ../
dockerfile: build/dockerfiles/coordinator-api.Dockerfile
volumes:
- ./conf/coordinator/:/app/conf
command: "--config /app/conf/config.json --http.port 8390 --verbosity 5"
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8390/coordinator/v1/challenge"]
interval: 1s
timeout: 1s
retries: 10
start_period: 5m

proving-service-chunk:
image: scrolltech/sdk-cloud-prover:sindri-v0.0.4
platform: linux/amd64
command: "--config /app/config.json"
environment:
PROVER_NAME_PREFIX: "sindri_chunk"
CIRCUIT_TYPE: 1 # 1 for chunk proving
RUST_BACKTRACE: 1
volumes:
- ./conf/proving-service/chunk/:/app/keys
- ./conf/proving-service/config.json:/app/config.json
depends_on:
coordinator:
condition: service_healthy

proving-service-batch:
image: scrolltech/sdk-cloud-prover:sindri-v0.0.4
platform: linux/amd64
command: "--config /app/config.json"
environment:
PROVER_NAME_PREFIX: "sindri_batch"
CIRCUIT_TYPE: 2 # 2 for chunk proving
volumes:
- ./conf/proving-service/batch/:/app/keys
- ./conf/proving-service/config.json:/app/config.json
depends_on:
coordinator:
condition: service_healthy

volumes:
db_data:

0 comments on commit f96af8e

Please # to comment.