mirror of
https://github.com/trailbaseio/trailbase.git
synced 2025-12-16 23:26:18 -06:00
Fix docker portmapping in getting-started guide - thank @eugenefil. #77
This commit is contained in:
@@ -110,7 +110,7 @@ directory:
|
||||
|
||||
```bash
|
||||
$ mkdir traildepot
|
||||
$ alias trail="docker run -p 4000:4000 --mount type=bind,source=$PWD/traildepot,target=/app/traildepot trailbase/trailbase /app/trail"
|
||||
$ alias trail="docker run --network host --mount type=bind,source=$PWD/traildepot,target=/app/traildepot trailbase/trailbase /app/trail"
|
||||
$ trail run
|
||||
```
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@ Alternatively, you can use a Docker image from DockerHub:
|
||||
|
||||
```bash
|
||||
$ alias trail="docker run \
|
||||
-p 4000:4000 \
|
||||
--network host \
|
||||
--mount type=bind,source=$PWD/traildepot,target=/app/traildepot \
|
||||
trailbase/trailbase /app/trail"
|
||||
$ mkdir traildepot # pre-create mount point for Docker
|
||||
$ trail run --address 0.0.0.0:4000
|
||||
$ trail run
|
||||
```
|
||||
|
||||
or compile from [source](https://github.com/trailbaseio/trailbase).
|
||||
|
||||
@@ -15,7 +15,7 @@ The quickest way to get TrailBase up and running is to use docker:
|
||||
|
||||
```bash
|
||||
$ mkdir traildepot
|
||||
$ docker run -p 4000:4000 --mount type=bind,source=$PWD/traildepot,target=/app/traildepot trailbase/trailbase
|
||||
$ docker run --network host --mount type=bind,source=$PWD/traildepot,target=/app/traildepot trailbase/trailbase
|
||||
```
|
||||
|
||||
On first start, TrailBase will generate a `traildepot` folder in your working
|
||||
|
||||
Reference in New Issue
Block a user