Reposilite defines two types of builds:
- tag-based - build is triggered per a new release, recommended for production environments
- nightly - build is triggered for each commit on master branch, it might be useful for testers and developers
First of all, you have to pull the image from DockerHub:
// released builds, e.g. 2.9.2 $ docker pull dzikoysk/reposilite:2.9.0 // nightly builds $ docker pull dzikoysk/reposilite:nightly
Then, just run the image in interactive mode (to support interactive CLI):
docker run -it -v reposilite-data:/app/data -p 80:80 dzikoysk/reposilite:nightly
Reposilite stores data in
Reposilite marks this path as externally mounted volume by default.
To use named volume which can be reused by Docker,
run docker with
docker run -it -v reposilite-data:/app/data -p 80:80 dzikoysk/reposilite
You can also pass custom configuration values using the environment variables:
$ docker run -e JAVA_OPTS='-Xmx128M -Dreposilite.port="8080"' -p 8080:80 dzikoysk/reposilite
You can find list of configuration properties in configuration chapter.
To pass custom parameters described in installation#properties, use
$ docker run -e REPOSILITE_OPTS='--config=/app/data/custom.cdn' -p 80:80 dzikoysk/reposilite
Note: Default Dockerfile changes Reposilite working directory to
/app/data/ and marks it as volume.
It is not recommended to modify this property.
You can mount external configuration file using the
Before that, you have to make sure the the configuration file already exists on Docker host.
To launch Reposilite with a custom configuration, we have to mount proper file:
docker run -it \ --mount type=bind,source=/etc/reposilite/reposilite.cdn,target=/app/reposilite-host.cdn \ -e REPOSILITE_OPTS='--config=/app/reposilite-host.cdn' \ -v reposilite-data:/app/data -p 80:80 dzikoysk/reposilite
As you can see, it is not best solution and as long as possible, you should override default configuration values using the custom properties.