Commit d96f6c8c3426115b0d254f2e5c76d781ab50db19

Authored by Igor Kulikov
Committed by GitHub
1 parent f6fccebd

Update README.md

Showing 1 changed file with 26 additions and 9 deletions
@@ -25,11 +25,28 @@ Where: @@ -25,11 +25,28 @@ Where:
25 - `-v ~/.mytb-data:/data` - mounts the host's dir `~/.mytb-data` to ThingsBoard DataBase data directory 25 - `-v ~/.mytb-data:/data` - mounts the host's dir `~/.mytb-data` to ThingsBoard DataBase data directory
26 - `--name mytb` - friendly local name of this machine 26 - `--name mytb` - friendly local name of this machine
27 - `thingsboard/tb` - docker image, can be also `thingsboard/tb-postgres` or `thingsboard/tb-cassandra` 27 - `thingsboard/tb` - docker image, can be also `thingsboard/tb-postgres` or `thingsboard/tb-cassandra`
28 -  
29 -After executing this command you can open `http://{your-host-ip}:9090` in you browser (for ex. `http://localhost:9090`). You should see ThingsBoard login page. 28 +- **NOTE**: **Windows** users should use docker managed volume instead of host's dir. Create docker volume (for ex. `mytb-data`) before executing `docker run` command:
  29 +
  30 + ```
  31 + $ docker create volume mytb-data
  32 + ```
  33 +
  34 + After you can execute docker run command using `mytb-data` volume instead of `~/.mytb-data`.
  35 +
  36 + In order to get access to necessary resources from external IP/Host on **Windows** machine, please execute the following commands:
  37 + ```
  38 + # HTTP port
  39 + $ VBoxManage controlvm "default" natpf1 "tcp-port9090,tcp,,9090,,9090"
  40 + # MQTT port
  41 + $ VBoxManage controlvm "default" natpf1 "tcp-port1883,tcp,,1883,,1883"
  42 + # CoAP port
  43 + $ VBoxManage controlvm "default" natpf1 "tcp-port5683,tcp,,5683,,5683"
  44 + ```
  45 +
  46 +After executing `docker run` command you can open `http://{your-host-ip}:9090` in you browser (for ex. `http://localhost:9090`). You should see ThingsBoard login page.
30 Use the following default credentials: 47 Use the following default credentials:
31 48
32 -- **Systen Administrator**: sysadmin@thingsboard.org / sysadmin 49 +- **System Administrator**: sysadmin@thingsboard.org / sysadmin
33 - **Tenant Administrator**: tenant@thingsboard.org / tenant 50 - **Tenant Administrator**: tenant@thingsboard.org / tenant
34 - **Customer User**: customer@thingsboard.org / customer 51 - **Customer User**: customer@thingsboard.org / customer
35 52
@@ -39,21 +56,21 @@ You can detach from session terminal with `Ctrl-p` `Ctrl-q` - the container will @@ -39,21 +56,21 @@ You can detach from session terminal with `Ctrl-p` `Ctrl-q` - the container will
39 56
40 To reattach to the terminal (to see ThingsBoard logs) run: 57 To reattach to the terminal (to see ThingsBoard logs) run:
41 58
42 -` 59 +```
43 $ docker attach mytb 60 $ docker attach mytb
44 -` 61 +```
45 62
46 To stop the container: 63 To stop the container:
47 64
48 -` 65 +```
49 $ docker stop mytb 66 $ docker stop mytb
50 -` 67 +```
51 68
52 To start the container: 69 To start the container:
53 70
54 -` 71 +```
55 $ docker start mytb 72 $ docker start mytb
56 -` 73 +```
57 74
58 ## Upgrading 75 ## Upgrading
59 76