diff --git a/docker/compose/docker-compose-proof-servers.yml b/docker/compose/docker-compose-proof-servers.yml index 67b4ffd2..a52931e2 100644 --- a/docker/compose/docker-compose-proof-servers.yml +++ b/docker/compose/docker-compose-proof-servers.yml @@ -5,6 +5,8 @@ services: command: sh -c "/app/proof_server --mode \"single\" --addr ${PRIMARY_ADDR}:${PRIMARY_PORT}" environment: - RUST_LOG=debug + # Prevent stack overflow + - RUST_MIN_STACK=16777216 restart: always ports: - "${PRIMARY_PORT}:${PRIMARY_PORT}" \ No newline at end of file diff --git a/docker/proof-server-chart/templates/proof-server-deployment.yaml b/docker/proof-server-chart/templates/proof-server-deployment.yaml index 01d49d65..99ce4cd4 100644 --- a/docker/proof-server-chart/templates/proof-server-deployment.yaml +++ b/docker/proof-server-chart/templates/proof-server-deployment.yaml @@ -26,6 +26,8 @@ spec: env: - name: RUST_LOG value: {{ quote .Values.deployment.proofServer.env.rustLog }} + - name: RUST_MIN_STACK + value: {{ quote .Values.deployment.proofServer.env.rustMinStack }} - name: CONTAINER_ADDR valueFrom: fieldRef: diff --git a/docker/proof-server-chart/values.yaml b/docker/proof-server-chart/values.yaml index 017c3e98..78f04830 100644 --- a/docker/proof-server-chart/values.yaml +++ b/docker/proof-server-chart/values.yaml @@ -3,6 +3,7 @@ deployment: env: containerPort: "8080" rustLog: debug + rustMinStack: 16777216 image: repository: ghcr.io/argumentcomputer/ethereum-proof-server tag: latest