-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
93 lines (88 loc) · 2.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3.8'
services:
http_service:
image: zpokendev/zk-lite-client_http-service:latest
build: ./backend
ports:
- '9024:9024'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9024/health"]
interval: 1m
timeout: 10s
retries: 3
start_period: 1m
volumes:
- ./proofs:/app/proofs
- /etc/localtime:/etc/localtime:ro
environment:
- NATS_URL=${NATS_URL}
- PRIVATE_KEY=${PRIVATE_KEY}
- NEAR_BLOCK_VERIFIER_CONTRACT=${NEAR_BLOCK_VERIFIER_CONTRACT}
- SEPOLIA_RPC=${SEPOLIA_RPC}
- NEAR_RPC=${NEAR_RPC}
depends_on:
- nats
- gnark_wrapper
networks:
- common-network
block_prover:
image: zpokendev/zk-lite-client_block-prover:latest
build:
context: .
dockerfile: ./docker/Dockerfile
volumes:
- ./proofs:/proofs
- /etc/localtime:/etc/localtime:ro
environment:
- NATS_URL=${NATS_URL}
- NEAR_RPC=${NEAR_RPC}
depends_on:
- nats
networks:
- common-network
sign_prover:
image: zpokendev/zk-lite-client_sign-prover:latest
build:
context: .
dockerfile: ./docker/Dockerfile.prover
volumes:
- /etc/localtime:/etc/localtime:ro
depends_on:
- nats
environment:
- NATS_URL=${NATS_URL}
networks:
- common-network
nats:
image: nats:latest
volumes:
- /etc/localtime:/etc/localtime:ro
expose:
- "4222"
ports:
- "4222:4222"
- "8222:8222"
hostname: nats-server
command: ["--jetstream"]
networks:
- common-network
gnark_wrapper:
image: zpokendev/zk-lite-client_gnark-wrapper_prebuilt:latest
build:
context: ./gnark-plonky2-verifier/
dockerfile: ./docker/Dockerfile_gnark_prebuilt
volumes:
- /etc/localtime:/etc/localtime:ro
ports:
- '8010:8010'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8010/health"]
interval: 1m
timeout: 10s
retries: 3
start_period: 1m
hostname: gnark_wrapper
networks:
- common-network
networks:
common-network: {}