-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docker compose file to spin up all necessary services together
- Loading branch information
1 parent
0f5ebf3
commit f96af8e
Showing
1 changed file
with
79 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,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: |