-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.32 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
version: "2.0"
networks:
# Specify the network for bridging
zkspv__services_network:
driver: bridge
external: true
services:
circuit:
build:
context: ./
dockerfile: cuda_12.2_amd64.Dockerfile
command: ./target/release/services --cache_srs_pk --generate_smart_contract
restart: always
# runtime: nvidia
# environment:
# - NVIDIA_VISIBLE_DEVICES=all
# # - NVIDIA_DRIVER_CAPABILITIES=compute,utility
# - ENABLE_CUDA=1
networks:
- zkspv__services_network
ports:
- "80:3030"
volumes:
- ./data:/usr/src/zkSpv/data
- ./cache_data:/usr/src/zkSpv/cache_data
- ./params:/usr/src/zkSpv/params
- ./challenges_db:/usr/src/zkSpv/challenges_db
- ./log:/usr/src/zkSpv/log
- ./spv.toml:/usr/src/zkSpv/spv.toml
# devices:
# - /dev/nvidia0:/dev/nvidia0
# - /dev/nvidiactl:/dev/nvidiactl
# - /dev/nvidia-caps:/dev/nvidia-caps
# - /dev/nvidia-modeset:/dev/nvidia-modeset
# - /dev/nvidia-uvm:/dev/nvidia-uvm
# - /dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools
# - driver: "nvidia"
# count: "all"
# capabilities: ["gpu"]
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]