forked from firstbatchxyz/dkn-compute-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
100 lines (91 loc) · 2.55 KB
/
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
94
95
96
97
98
99
100
version: "3.7"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 1000m
# Environment variable definitions
x-eth-client-address: ð_client_address ${ETH_CLIENT_ADDRESS:-} # Add your ETH_CLIENT_ADDRESS after the "-"
x-rln-environment: &rln_env
RLN_RELAY_CONTRACT_ADDRESS: ${RLN_RELAY_CONTRACT_ADDRESS:-0xF471d71E9b1455bBF4b85d475afb9BB0954A29c4}
RLN_RELAY_CRED_PATH: ${RLN_RELAY_CRED_PATH:-} # Optional: Add your RLN_RELAY_CRED_PATH after the "-"
RLN_RELAY_CRED_PASSWORD: ${RLN_RELAY_CRED_PASSWORD:-} # Optional: Add your RLN_RELAY_CRED_PASSWORD after the "-"
services:
# Compute Node
compute:
build: "./"
environment:
DKN_OLLAMA_HOST: "http://host.docker.internal"
DKN_OLLAMA_PORT: "11434"
DKN_OLLAMA_MODEL: ${DKN_OLLAMA_MODEL:-phi3}
DKN_WAKU_URL: "http://host.docker.internal:8645"
DKN_WALLET_SECRET_KEY: ${ETH_TESTNET_KEY}
DKN_ADMIN_PUBLIC_KEY: "0208ef5e65a9c656a6f92fb2c770d5d5e2ecffe02a6aade19207f75110be6ae658"
RUST_LOG: "info"
network_mode: "host"
depends_on:
- nwaku
# Waku Node
nwaku:
# image: harbor.status.im/wakuorg/nwaku:v0.27.0
image: quay.io/wakuorg/nwaku-pr:2682-rln-v1
restart: on-failure
ports:
- 30304:30304/tcp
- 30304:30304/udp
- 9005:9005/udp
- 127.0.0.1:8003:8003
- 80:80 # Let's Encrypt
- 8000:8000/tcp # WSS
- 8645:8645 # instead of: 127.0.0.1:8645:8645
<<:
- *logging
environment:
RLN_RELAY_CRED_PASSWORD: "${RLN_RELAY_CRED_PASSWORD}"
ETH_CLIENT_ADDRESS: *eth_client_address
<<:
- *rln_env
volumes:
- ${CERTS_DIR:-./waku/certs}:/etc/letsencrypt/:Z
- ./run_node.sh:/opt/run_node.sh:Z
- ./waku/rln_tree:/etc/rln_tree/:Z
- ./waku/keystore:/keystore:Z
entrypoint: sh
command:
- /opt/run_node.sh
# Ollama Container (CPU)
ollama:
image: ollama/ollama:latest
ports:
- 11434:11434
volumes:
- ollama:/root/.ollama
profiles: [ollama-cpu]
# Ollama Container (ROCM)
ollama-rocm:
image: ollama/ollama:rocm
ports:
- 11434:11434
volumes:
- ollama:/root/.ollama
devices:
- "/dev/kfd"
- "/dev/dri"
profiles: [ollama-rocm]
# Ollama Container (CUDA)
ollama-cuda:
image: ollama/ollama
ports:
- 11434:11434
volumes:
- ollama:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
profiles: [ollama-cuda]
volumes:
ollama: