Docker Compose Options
Start the Node using Docker Compose
Start the container using Docker Compose
1. Create an empty working directory
$ mkdir h_node
$ cd h_node2. Create a file named docker-compose.yml in the working directory:
docker-compose.yml in the working directory:---
version: "3.8"
name: "crynux_node"
services:
h_node:
image: ghcr.io/crynux-network/crynux-node:latest
container_name: crynux_node
restart: unless-stopped
ports:
- "127.0.0.1:7412:7412"
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
3. Start the Docker container
Mount the Model Cache Folder
1. Create an empty data folder inside the working directory
2. Add the mounting point in the docker-compose.yml file
docker-compose.yml file3. Start the Docker container
Mount the Config File
1. Create an empty config folder inside the working directory
2. Add the mounting point in the docker-compose.yml file
docker-compose.yml file3. Start the Docker container
4. A config file will be created automatically after the container creation
Last updated