-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (68 loc) · 2.52 KB
/
docker-compose.yml
File metadata and controls
69 lines (68 loc) · 2.52 KB
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
version: "3.9"
services:
prover-node:
image: zkwasm/prover-node:latest
runtime: nvidia
network_mode: "host"
deploy:
resources:
reservations:
devices:
- driver: nvidia
# Use all GPUs available on the system by default
# count: all
# If you want to specify which GPUs to use, uncomment the following line
# and specify the GPU IDs. You can run `nvidia-smi` to see the GPU IDs.
# Ensure 'count' field above is commented out if uncommenting the following line as they are mutually exclusive.
# ref:: https://docs.docker.com/compose/gpu-support/
# By default we just use the first GPU
device_ids: ["0"]
capabilities: [gpu]
user: "1001:1001"
build:
context: .
dockerfile: Dockerfile
volumes:
- ./prover_config.json:/home/zkwasm/prover-node-release/prover_config.json
- ./dry_run_config.json:/home/zkwasm/prover-node-release/dry_run_config.json
- ./prover_system_config.json:/home/zkwasm/prover-node-release/prover_system_config.json
# Volume for the whole workspace directory to persist workspace data
# may have to consider handling changes in the workspace directory (delete volume probably)
- workspace-volume:/home/zkwasm/prover-node-release/workspace
# Volume for the rocksdb data directory to persist rocksdb data
- rocksdb_data:/home/zkwasm/prover-node-release/rocksdb
# Volume for the logs directory to persist logs
- prover-logs-volume:/home/zkwasm/prover-node-release/logs/prover
# configure huge pages for the prover
- /dev/hugepages:/dev/hugepages
# Starting script for the prover
- ./_start_prover-node-service.sh:/home/zkwasm/prover-node-release/_start_prover-node-service.sh
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
environment:
- TZ=Etc/UTC
command:
[
"/bin/bash",
"/home/zkwasm/prover-node-release/_start_prover-node-service.sh",
]
monitor:
image: docker:27.5.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./scripts/.env:/.env
- ./scripts/_monitor_config.sh:/_monitor_config.sh
- ./scripts/monitor.sh:/monitor.sh
command: /bin/sh -c "apk add bash curl && bash monitor.sh"
depends_on:
- prover-node
profiles:
- ${RUN_MONITOR}
volumes:
workspace-volume:
prover-logs-volume:
dry-run-logs-volume:
rocksdb_data: