mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-27 20:11:34 +03:00
Updated docker docs
This commit is contained in:
parent
3aded3bc5f
commit
fa2fede604
2 changed files with 2 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
||||||
FROM php:7.4.1-alpine3.10
|
FROM php:7.4.1-alpine3.10
|
||||||
LABEL maintainer="Alejandro Celaya <alejandro@alejandrocelaya.com>"
|
LABEL maintainer="Alejandro Celaya <alejandro@alejandrocelaya.com>"
|
||||||
|
|
||||||
ARG SHLINK_VERSION=1.20.2
|
ARG SHLINK_VERSION=2.0.0
|
||||||
ENV SHLINK_VERSION ${SHLINK_VERSION}
|
ENV SHLINK_VERSION ${SHLINK_VERSION}
|
||||||
ENV SWOOLE_VERSION 4.4.12
|
ENV SWOOLE_VERSION 4.4.12
|
||||||
ENV COMPOSER_VERSION 1.9.1
|
ENV COMPOSER_VERSION 1.9.1
|
||||||
|
|
|
@ -119,8 +119,6 @@ This is the complete list of supported env vars:
|
||||||
|
|
||||||
In the future, these redis servers could be used for other caching operations performed by shlink.
|
In the future, these redis servers could be used for other caching operations performed by shlink.
|
||||||
|
|
||||||
* `SHORTCODE_CHARS`: **Ignored when using Shlink 1.20 or newer**. A charset to use when building short codes. Only needed when using more than one shlink instance ([Multi instance considerations](#multi-instance-considerations)).
|
|
||||||
|
|
||||||
An example using all env vars could look like this:
|
An example using all env vars could look like this:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -207,20 +205,12 @@ These are some considerations to take into account when running multiple instanc
|
||||||
|
|
||||||
You can (and should) make the locks to be shared by all Shlink instances by using a redis server/cluster. Just define the `REDIS_SERVERS` env var with the list of servers.
|
You can (and should) make the locks to be shared by all Shlink instances by using a redis server/cluster. Just define the `REDIS_SERVERS` env var with the list of servers.
|
||||||
|
|
||||||
* **Ignore this if using Shlink 1.20 or newer**. The first time shlink is run, it generates a charset used to generate short codes, which is a shuffled base62 charset.
|
|
||||||
|
|
||||||
If you are using several shlink instances, you will probably want all of them to use the same charset.
|
|
||||||
|
|
||||||
You can get a shuffled base62 charset by going to [https://shlink.io/short-code-chars](https://shlink.io/short-code-chars), and then you just need to pass it to all shlink instances using the `SHORTCODE_CHARS` env var.
|
|
||||||
|
|
||||||
If you don't do this, each shlink instance will use a different charset. However this shouldn't be a problem in practice, since the chances to get a collision will be very low.
|
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
Versioning on this docker image works as follows:
|
Versioning on this docker image works as follows:
|
||||||
|
|
||||||
* `X.X.X`: when providing a specific version number, the image version will match the shlink version it contains. For example, installing `shlinkio/shlink:1.15.0`, you will get an image containing shlink v1.15.0.
|
* `X.X.X`: when providing a specific version number, the image version will match the shlink version it contains. For example, installing `shlinkio/shlink:1.15.0`, you will get an image containing shlink v1.15.0.
|
||||||
* `stable`: always holds the latest stable tag. For example, if latest shlink version is 1.20.0, installing `shlinkio/shlink:stable`, you will get an image containing shlink v1.20.0
|
* `stable`: always holds the latest stable tag. For example, if latest shlink version is 2.0.0, installing `shlinkio/shlink:stable`, you will get an image containing shlink v2.0.0
|
||||||
* `latest`: always holds the latest contents in master, and it's considered unstable and not suitable for production.
|
* `latest`: always holds the latest contents in master, and it's considered unstable and not suitable for production.
|
||||||
|
|
||||||
> **Important**: The docker image was introduced with shlink v1.15.0, so there are no official images previous to that versions.
|
> **Important**: The docker image was introduced with shlink v1.15.0, so there are no official images previous to that versions.
|
||||||
|
|
Loading…
Add table
Reference in a new issue