Skip to content

Commit

Permalink
GH-1520 Fix port numbers in the Docker guide (#1520)
Browse files Browse the repository at this point in the history
Reposilite's Docker container binds to port 8080 by default, not 80
  • Loading branch information
TheTechRobo authored Aug 30, 2022
1 parent 465b97c commit 57debe4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reposilite-site/data/guides/installation/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ just run the image in interactive mode
_(to enable [interactive CLI](/guide/manual#interactive-cli))_:

```bash
$ docker run -it -v reposilite-data:/app/data -p 80:80 dzikoysk/reposilite:nightly
$ docker run -it -v reposilite-data:/app/data -p 80:8080 dzikoysk/reposilite:nightly
```

### Startup configuration
Expand All @@ -38,23 +38,23 @@ Reposilite stores data in `/app/data` directory by default.
To make it persistent, use named volume with `-v` parameter:

```bash
$ docker run -it -v reposilite-data:/app/data -p 80:80 dzikoysk/reposilite
$ docker run -it -v reposilite-data:/app/data -p 80:8080 dzikoysk/reposilite
```

#### JVM properties

You can also pass custom configuration values using the environment variables:

```shell-session
$ docker run -e JAVA_OPTS='-Xmx128M' -p 8080:80 dzikoysk/reposilite
$ docker run -e JAVA_OPTS='-Xmx128M' -p 80:8080 dzikoysk/reposilite
```

#### Reposilite properties

To pass custom parameters described in [setup#parameters](setup#parameters), use `REPOSILITE_OPTS` variable:

```shell-session
$ docker run -e REPOSILITE_OPTS='--local-configuration=/app/data/custom.cdn' -p 80:80 dzikoysk/reposilite
$ docker run -e REPOSILITE_OPTS='--local-configuration=/app/data/custom.cdn' -p 80:8080 dzikoysk/reposilite
```

#### External configuration
Expand All @@ -68,7 +68,7 @@ $ docker run -it \
--mount type=bind,source=/etc/reposilite/configuration.cdn,target=/app/configuration.cdn \
-e REPOSILITE_OPTS='--local-configuration=/app/configuration.cdn' \
-v reposilite-data:/app/data
-p 80:80
-p 80:8080
dzikoysk/reposilite
```

Expand Down

0 comments on commit 57debe4

Please sign in to comment.