Skip to content

Commit

Permalink
test: update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
0xawaz committed Nov 15, 2024
1 parent b08c100 commit 8b3ada9
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions fhevm-engine/coprocessor/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,52 @@
version: '3.8'
name: fhevm

services:
db:
container_name: db
image: postgres:15.7
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- '5432:5432'
volumes:
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 3
volumes:
- db:/var/lib/postgresql/data
coproc:
image: ghcr.io/zama-ai/fhevm-coprocessor:v7

coprocessor:
container_name: coprocessor
image: ghcr.io/zama-ai/fhevm-coprocessor:latest
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/coprocessor
DATABASE_URL: postgresql://postgres:postgres@db:5432/coprocessor
ports:
- '50051:50051'
volumes:
- ${PWD}/coprocessor.key:/usr/share/coprocessor.key
- ./coprocessor.key:/usr/share/coprocessor.key
command:
- --run-bg-worker
- --run-server
- --server-addr=0.0.0.0:50051
- --coprocessor-private-key=/usr/share/coprocessor.key
depends_on:
db:
condition: service_healthy

geth:
image: ghcr.io/zama-ai/geth-coprocessor-devnode:v6
container_name: geth
image: ghcr.io/zama-ai/go-ethereum-coprocessor-dev:latest
environment:
- FHEVM_COPROCESSOR_API_KEY=a1503fb6-d79b-4e9e-826d-44cf262f3e05
- FHEVM_COPROCESSOR_URL=coproc:50051
- COPROCESSOR_CONTRACT_ADDRESS=0x6819e3aDc437fAf9D533490eD3a7552493fCE3B1
- ACL_CONTRACT_ADDRESS=0x339EcE85B9E11a3A3AA557582784a15d7F82AAf2
FHEVM_COPROCESSOR_API_KEY: a1503fb6-d79b-4e9e-826d-44cf262f3e05
FHEVM_COPROCESSOR_URL: coprocessor:50051
COPROCESSOR_CONTRACT_ADDRESS: 0x6819e3aDc437fAf9D533490eD3a7552493fCE3B1
ACL_CONTRACT_ADDRESS: 0x339EcE85B9E11a3A3AA557582784a15d7F82AAf2
ports:
- '8745:8545'

volumes:
db:
driver: local

0 comments on commit 8b3ada9

Please sign in to comment.