You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+88Lines changed: 88 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,3 +205,91 @@ Plot Sink is a tool to receive plots over the network and copy them to multiple
205
205
You can find binaries in [plot-sink](https://github.com/madMAx43v3r/chia-gigahorse/tree/master/plot-sink)
206
206
207
207
See also the open source repository: https://github.com/madMAx43v3r/chia-plot-sink
208
+
209
+
## Docker Usage
210
+
211
+
The Dockerfile file uses multiple build stages to support 3 different applications CPU-Only, AMD-GPU, NVIDIA-GPU.
212
+
213
+
Each image provides a volume for `/data` which you can override with your own volume or a mapped path to customize the storage location of the node data.
214
+
215
+
The default behavior of the container is to look in `/data` for an existing db/config and use it. Otherwise it will generate a fresh config and start syncing the node from scratch.
216
+
217
+
You can set which services to run with the `CHIA_SERVICES` environment variable.
218
+
219
+
Docker Run Examples:
220
+
```
221
+
-e CHIA_SERVICES="harvester"
222
+
-e CHIA_SERVICES="node farmer-only"
223
+
-e CHIA_SERVICES="node farmer-only wallet"
224
+
```
225
+
Docker Compose Examples:
226
+
```yml
227
+
environment:
228
+
- CHIA_SERVICES="harvester"
229
+
230
+
environment:
231
+
- CHIA_SERVICES="node farmer-only"
232
+
233
+
environment:
234
+
- CHIA_SERVICES="node farmer-only wallet"
235
+
```
236
+
237
+
### CPU-Only
238
+
239
+
Docker Run Example:
240
+
241
+
`docker run --rm -it -v /path/to/.chia:/data chia-gigahorse`
242
+
243
+
Docker Compose Example:
244
+
```yml
245
+
version: '3'
246
+
services:
247
+
node:
248
+
image: chia-gigahorse
249
+
restart: unless-stopped
250
+
volumes:
251
+
- /path/to/.chia:/data
252
+
```
253
+
254
+
### AMD-GPU
255
+
256
+
Docker Run Example:
257
+
258
+
`docker run --rm -it --device=/dev/kfd --device=/dev/dri --group-add video --group-add render -v /path/to/.chia:/data chia-gigahorse-amd`
259
+
260
+
Docker Compose Example:
261
+
```yml
262
+
version: '3'
263
+
services:
264
+
node:
265
+
image: chia-gigahorse-amd
266
+
restart: unless-stopped
267
+
group_add:
268
+
- video
269
+
- render
270
+
devices:
271
+
- /dev/dri:/dev/dri
272
+
- /dev/kfd:/dev/kfd
273
+
volumes:
274
+
- /path/to/.chia:/data
275
+
```
276
+
Note: `- render`in `group_add` might need to be removed, depending on your system.
277
+
278
+
### NVIDIA-GPU
279
+
280
+
Docker Run Example:
281
+
282
+
`docker run --rm -it --runtime=nvidia -v /path/to/.chia:/data chia-gigahorse-nvidia`
283
+
284
+
Docker Compose Example:
285
+
```yml
286
+
version: '3'
287
+
services:
288
+
node:
289
+
image: chia-gigahorse-nvidia
290
+
restart: unless-stopped
291
+
runtime: nvidia
292
+
volumes:
293
+
- /path/to/.chia:/data
294
+
```
295
+
Note: for nvidia you also need the `NVIDIA Container Toolkit` installed on the host, for more info please see: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker
0 commit comments