Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/mesa-upgrade/preflight-network.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ For production deployments, you'll want to mount configuration directories and a
docker run --name mina-mesa-preflight -d \
-p 8302:8302 \
--restart=always \
-v $(pwd)/.mina-config:/data/.mina-config \
-v $(pwd)/.mina-config:/root/.mina-config \
gcr.io/o1labs-192920/mina-daemon:4.0.0-preflight1-b649c79-bookworm-mesa \
daemon \
--peer-list-url https://storage.googleapis.com/o1labs-gitops-infrastructure/mina-mesa-network/mina-mesa-network-seeds.txt \
--libp2p-keypair /data/.mina-config/keys/libp2p-key
--libp2p-keypair /root/.mina-config/keys/libp2p-key
```

### Example: Running with Debian Package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ export MINA_PRIVKEY_PASS="My_V3ry_S3cure_Password"
export MINA_LIBP2P_PASS="My_V3ry_S3cure_Password"
LOG_LEVEL=Info
FILE_LOG_LEVEL=Debug
EXTRA_FLAGS=" --block-producer-key /data/.mina-config/keys/my-wallet --libp2p-keypair /data/.mina-config/keys/libp2p-key"
EXTRA_FLAGS=" --block-producer-key /root/.mina-config/keys/my-wallet --libp2p-keypair /root/.mina-config/keys/libp2p-key"
PEER_LIST_URL=https://bootnodes.minaprotocol.com/networks/devnet.txt
```

In the example above, `/data/.mina-config/keys/my-wallet` is the absolute path of your block producer private key mounted in the container.
In the example above, `/root/.mina-config/keys/my-wallet` is the absolute path of your block producer private key mounted in the container.

If you do not want to produce blocks, provide only the `PEER_LIST_URL` and the `--libp2p-keypair` flag.
```sh
EXTRA_FLAGS="--libp2p-keypair /data/.mina-config/keys/libp2p-key"
EXTRA_FLAGS="--libp2p-keypair /root/.mina-config/keys/libp2p-key"
```

Now, run the image with your `.mina-config` and `.mina-env` and `keys` files mounted into the container:
Expand All @@ -124,7 +124,7 @@ Now, run the image with your `.mina-config` and `.mina-env` and `keys` files mou
docker run --name mina -d \
-p 8302:8302 \
--restart=always \
-v $(pwd)/.mina-config:/data/.mina-config \
-v $(pwd)/.mina-config:/root/.mina-config \
-v $(pwd)/.mina-env:/entrypoint.d/mina-env \
gcr.io/o1labs-192920/mina-daemon:3.3.0-alpha1-6929a7e-bullseye-devnet \
daemon
Expand Down
12 changes: 6 additions & 6 deletions docs/node-operators/block-producer-node/docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ services:
entrypoint: []
command: >
bash -c '
mina advanced generate-keypair --privkey-path /data/.mina-config/keys/wallet-key
chmod -R 0700 /data/.mina-config/keys
chmod -R 0600 /data/.mina-config/keys/wallet-key
mina advanced generate-keypair --privkey-path /root/.mina-config/keys/wallet-key
chmod -R 0700 /root/.mina-config/keys
chmod -R 0600 /root/.mina-config/keys/wallet-key
'
volumes:
- './node/mina-config:/data/.mina-config'
- './node/mina-config:/root/.mina-config'
mina_block_producer:
image: 'minaprotocol/mina-daemon:3.3.0-8c0c2e6-bullseye-mainnet'
# image: 'gcr.io/o1labs-192920/mina-daemon:3.3.0-alpha1-6929a7e-bullseye-devnet' # Use this image for Devnet
Expand All @@ -41,11 +41,11 @@ services:
bash -c '
mina daemon \
--peer-list-url https://bootnodes.minaprotocol.com/networks/mainnet.txt \
--block-producer-key /data/.mina-config/keys/wallet-key
--block-producer-key /root/.mina-config/keys/wallet-key
'
# use --peer-list-url https://bootnodes.minaprotocol.com/networks/devnet.txt for Devnet
volumes:
- './node/mina-config:/data/.mina-config'
- './node/mina-config:/root/.mina-config'
ports:
- '8302:8302'
depends_on:
Expand Down
12 changes: 6 additions & 6 deletions docs/node-operators/seed-peers/docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ services:
entrypoint: []
command: >
bash -c '
mina libp2p generate-keypair -privkey-path /data/.mina-config/keys/libp2p-key
chmod -R 0700 /data/.mina-config/keys
chmod -R 0600 /data/.mina-config/keys/libp2p-key
mina libp2p generate-keypair -privkey-path /root/.mina-config/keys/libp2p-key
chmod -R 0700 /root/.mina-config/keys
chmod -R 0600 /root/.mina-config/keys/libp2p-key
'
volumes:
- './node/mina-config:/data/.mina-config'
- './node/mina-config:/root/.mina-config'
mina_node:
image: 'minaprotocol/mina-daemon:3.3.0-8c0c2e6-bullseye-mainnet'
# image: 'gcr.io/o1labs-192920/mina-daemon:3.3.0-alpha1-6929a7e-bullseye-devnet' # Use this image for Devnet
Expand All @@ -39,12 +39,12 @@ services:
bash -c '
mina daemon \
--peer-list-url https://bootnodes.minaprotocol.com/networks/mainnet.txt \
--libp2p-keypair /data/.mina-config/keys/libp2p-key \
--libp2p-keypair /root/.mina-config/keys/libp2p-key \
--seed
'
# use --peer-list-url https://bootnodes.minaprotocol.com/networks/devnet.txt for Devnet
volumes:
- './node/mina-config:/data/.mina-config'
- './node/mina-config:/root/.mina-config'
ports:
- '8302:8302'
depends_on:
Expand Down
14 changes: 7 additions & 7 deletions docs/node-operators/snark-workers/docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ services:
entrypoint: []
command: >
bash -c '
mina advanced generate-keypair --privkey-path /data/.mina-config/keys/wallet-key
chmod -R 0700 /data/.mina-config/keys
chmod -R 0600 /data/.mina-config/keys/wallet-key
mina advanced generate-keypair --privkey-path /root/.mina-config/keys/wallet-key
chmod -R 0700 /root/.mina-config/keys
chmod -R 0600 /root/.mina-config/keys/wallet-key
'
volumes:
- './node/mina-config:/data/.mina-config'
- './node/mina-config:/root/.mina-config'
mina_snark_coordinator:
image: 'minaprotocol/mina-daemon:3.3.0-8c0c2e6-bullseye-mainnet'
# image: 'gcr.io/o1labs-192920/mina-daemon:3.3.0-alpha1-6929a7e-bullseye-devnet' # Use this image for Devnet
Expand All @@ -48,12 +48,12 @@ services:
mina daemon \
--peer-list-url https://bootnodes.minaprotocol.com/networks/mainnet.txt \
--snark-worker-fee 0.001 \
--run-snark-coordinator $(cat /data/.mina-config/keys/wallet-key.pub) \
--run-snark-coordinator $(cat /root/.mina-config/keys/wallet-key.pub) \
--work-selection rand
'
# use --peer-list-url https://bootnodes.minaprotocol.com/networks/devnet.txt for Devnet
volumes:
- './node/mina-config:/data/.mina-config'
- './node/mina-config:/root/.mina-config'
ports:
- '8302:8302'
depends_on:
Expand All @@ -73,7 +73,7 @@ services:
--proof-level full
'
volumes:
- './node/mina-config:/data/.mina-config'
- './node/mina-config:/root/.mina-config'
depends_on:
mina_snark_coordinator:
condition: service_healthy
Expand Down
Loading