Fix ports in the docker instructions

-P/--publish-all publishes the container ports on a random
host port, which you have to look up using `docker port`.

In the common case they should be published on the same ports.
This commit is contained in:
Chris Smith 2019-11-22 18:06:51 +00:00
parent 8228cb4b0d
commit 69e1dea224
No known key found for this signature in database
GPG Key ID: 3A2D4BBDC4A3C9A9
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ certificates. To get a working ircd, all you need to do is run the image and
expose the ports:
```shell
docker run --name oragono -d -P oragono/oragono:tag
docker run --name oragono -d -p 6667:6667 -p 6697:6697 oragono/oragono:tag
```
This will start Oragono and listen on ports 6667 (plain text) and 6697 (TLS).
@ -49,14 +49,14 @@ For example, to create a new docker volume and then mount it:
```shell
docker volume create oragono-data
docker run -d -v oragono-data:/ircd -P oragono/oragono:tag
docker run -d -v oragono-data:/ircd -p 6667:6667 -p 6697:6697 oragono/oragono:tag
```
Or to mount a folder from your host machine:
```shell
mkdir oragono-data
docker run -d -v $(PWD)/oragono-data:/ircd -P oragono/oragono:tag
docker run -d -v $(PWD)/oragono-data:/ircd -p 6667:6667 -p 6697:6697 oragono/oragono:tag
```
## Customising the config