Docker
Use Docker Engine and the Compose plugin.
Download the bundle
Download weft-compose.tar.gz and SHA256SUMS from the same Weft release into an empty directory. Verify the download:
sha256sum --ignore-missing -c SHA256SUMS
When you see weft-compose.tar.gz: OK, extract the bundle:
tar -xzf weft-compose.tar.gz
Create Compose directory
PROJECT_DIR="$HOME/weft"
mkdir "$PROJECT_DIR"
Copy the files for your role, including the .env file that selects the release image:
cp -Rp client/. "$PROJECT_DIR/"
cp -Rp server/. "$PROJECT_DIR/"
The default Compose file uses bridge networking. See provider connectivity if you need host networking.
Consumer Relay
The consumer bundle includes a relay so applications on the Docker host can reach a session inside the container. Your application connects to 127.0.0.1:8080 on the host. The relay forwards those requests to 127.0.0.1:18080 inside the container, so add --listen 127.0.0.1:18080 when starting a session.
If host port 8080 is in use, set WEFT_TUNNEL_PORT in .env to an available port and use that port in your application. The session still listens on 18080 inside the container.
Start the Compose project
Start the containers from your project directory:
cd "$PROJECT_DIR"
docker compose up -d
Run weft from your shell
To run weft from any directory, run realpath compose.yaml in your project directory.
Add these two lines to ~/.bashrc (or ~/.zshrc for Zsh). Replace /home/alex/weft/compose.yaml with the path printed above:
export WEFT_COMPOSE_FILE="/home/alex/weft/compose.yaml"
alias weft='docker compose -f "$WEFT_COMPOSE_FILE" exec -T weft weft'
Verify the service
Open a new terminal and check that the node responds:
weft info
Look for your Peer ID and check Server: Disabled for a consumer or Enabled for a provider. Wherever the guides refer to the installed client/ or server/ directory, use your project directory.