Skip to content

Commit

Permalink
Change publish interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Niek authored Mar 26, 2022
1 parent 7dae780 commit 3272feb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/running-headscale-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ docker run \
--detach \
--rm \
--volume $(pwd)/config:/etc/headscale/ \
--publish 0.0.0.0:8080:8080 \
--publish 127.0.0.1:8080:8080 \
--publish 127.0.0.1:9090:9090 \
headscale/headscale:<VERSION> \
headscale serve

```

Note: use `0.0.0.0:8080:8080` instead of `127.0.0.1:8080:8080` if you want to expose the container externally.

This command will mount `config/` under `/etc/headscale`, forward port 8080 out of the container so the
`headscale` instance becomes available and then detach so headscale runs in the background.

Expand Down

0 comments on commit 3272feb

Please sign in to comment.