Fix docker portmapping in getting-started guide - thank @eugenefil. #77

This commit is contained in:
Sebastian Jeltsch
2025-07-09 18:11:50 +02:00
parent 8c2c9b1fcd
commit 7da5492e3e
3 changed files with 4 additions and 4 deletions

View File

@@ -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
```

View File

@@ -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).

View File

@@ -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