Skip to content

Commit 666a957

Browse files
pixelplexSergeyAndreevPixelreveloperawesome-doge
authored
Added info run docker (#611)
* add info run in docker * change docker repository mytonctrl * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> --------- Co-authored-by: Sergey Andreev <s.andreev@pixelplex.io> Co-authored-by: AlexG <39581753+reveloper@users.noreply.github.com> Co-authored-by: Dr. Awesome Doge <doge@ton.org>
1 parent b22da0e commit 666a957

File tree

3 files changed

+121
-2
lines changed

3 files changed

+121
-2
lines changed

docs/participate/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ It is also meant to offer essential frameworks (explorers, wallets, TEPs) that a
2525
* [Discover Node Types in TON](/participate/nodes/node-types)
2626
* [Run your Full Node or Validator](/participate/run-nodes/full-node)
2727
* [TON Validator maintenance & security](/participate/nodes/node-maintenance-and-security)
28+
* [Run MyTonCtrl in Docker](/participate/run-nodes/run-docker)
2829

2930
## Participate in TON Web3
3031

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Run MyTonCtrl in Docker
2+
3+
## Hardware requirements:
4+
5+
* 16 cores CPU
6+
* 128 GB RAM
7+
* 1TB NVME SSD OR Provisioned 64+k IOPS storage
8+
* 1 Gbit/s network connectivity
9+
* Public IP address (fixed IP address)
10+
* 16 TB/month traffic on peak load
11+
12+
**_Not recommended!_** **_For testing purposes only!_**
13+
14+
Variable **IGNORE_MINIMAL_REQS=true** turns off requirements verification of CPU/RAM.
15+
16+
## Software requirements:
17+
18+
* docker-ce
19+
* docker-ce-cli
20+
* containerd.io
21+
* docker-buildx-plugin
22+
* docker-compose-plugin
23+
24+
_Installation guide in official [Docker](https://docs.docker.com/engine/install/)_
25+
26+
## Tested operational systems:
27+
28+
* Ubuntu 20.04
29+
* Ubuntu 22.04
30+
* Ubuntu 24.04
31+
* Debian 11
32+
* Debian 12
33+
34+
## Installation and start MyTonCtrl:
35+
36+
1. Clone the last version of the repository
37+
```bash
38+
git clone https://github.com/ton-community/ton-docker-ctrl.git
39+
```
40+
2. Go to directory
41+
```bash
42+
cd ./ton-docker-ctrl
43+
```
44+
3. Indicate the necessary values in the .env file
45+
```bash
46+
vi .env
47+
```
48+
4. Initiate assembling of docker image. This step involves the compilation of the latest versions of fift, validator-engine, lite-client, etc., as well as the installation and initial setup of MyTonCtrl.
49+
```bash
50+
docker compose build ton-node
51+
```
52+
5. Start of MyTonCtrl
53+
```bash
54+
docker compose up -d
55+
```
56+
## Variables setting:
57+
58+
Variables indicated in the file .env
59+
* **GLOBAL_CONFIG_URL** - Network configs of TON Blockchain (default: [Testnet](https://ton.org/testnet-global.config.json))
60+
* **MYTONCTRL_VERSION** - Git branch from which MyTonCtrl assembled
61+
* **TELEMETRY** - Enabling/Disabling telemetry
62+
* **MODE** - Set MyTonCtrl in the indicated mode (validator or liteserver)
63+
* **IGNORE_MINIMAL_REQS** - Ignore hardware requirements
64+
65+
## Stop and delete MyTonCtrl:
66+
67+
1. Stop container
68+
```bash
69+
docker compose stop
70+
```
71+
2. Delete container
72+
```bash
73+
docker compose down
74+
```
75+
3. Delete container with data
76+
```bash
77+
docker compose down --volumes
78+
```
79+
## Connection to MyTonCtrl:
80+
```bash
81+
docker compose exec -it ton-node bash -c "mytonctrl"
82+
```
83+
As soon as get connected it is possible to check the status by using the command `status`
84+
```bash
85+
MyTonCtrl> status
86+
```
87+
![](https://raw.githubusercontent.com/ton-blockchain/mytonctrl/master/screens/mytonctrl-status.png)
88+
89+
Reflects the list of accessible commands `help`
90+
```bash
91+
MyTonCtrl> help
92+
```
93+
## Review of MyTonCtrl logs:
94+
```bash
95+
docker compose logs
96+
```
97+
## Updates of MyTonCtrl and TON:
98+
99+
To get the last versions of TON validator and MyTonCtrl, it is necessary to go to catalogue with docker-compose.yml and make assembling
100+
```bash
101+
cd ./ton-docker-ctrl
102+
docker compose build ton-node
103+
```
104+
Once finished, start Docker Compose again
105+
```bash
106+
docker compose up -d
107+
```
108+
When connected to MyTonCtrl, an automatic verification for updates is performed. If any updates are detected, a message is displayed"_MyTonCtrl update available. Please update it with `update` command._"
109+
110+
Update is done using the update command by specifying the necessary branch
111+
```bash
112+
MyTonCtrl> update mytonctrl2
113+
```
114+
## Change of data storage path:
115+
116+
By default TON and Mytoncore works are stored in **/var/lib/docker/volumes/**
117+
118+
You can change it in the file docker-compose.yml, by indicating the required route in **volumes** section

sidebars.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,16 +669,16 @@ const sidebars = {
669669
items: [
670670
'participate/nodes/node-types',
671671
'participate/run-nodes/mytonctrl',
672+
'participate/run-nodes/run-docker',
672673
'participate/run-nodes/full-node',
673674
'participate/run-nodes/enable-liteserver-node',
674675
'participate/run-nodes/become-validator',
675676
'participate/run-nodes/archive-node',
676677
'participate/run-nodes/nodes-troubleshooting',
677-
//'participate/run-nodes/liteserver',
678-
//'participate/nodes/nodes-faq',
679678
'participate/nodes/node-maintenance-and-security',
680679
'participate/run-nodes/local-ton',
681680
'participate/run-nodes/faq',
681+
682682
],
683683
},
684684
{

0 commit comments

Comments
 (0)