|
| 1 | +# [See on Docker Hub](https://hub.docker.com/r/julianprieber/littlelink-custom) |
| 2 | + |
| 3 | +Based on Alpine Linux and running Apache2 with PHP 8. |
| 4 | + |
| 5 | +## Optional environment variables |
| 6 | + |
| 7 | +- `SERVER_ADMIN` (an email, defaults to `you@example.com`) |
| 8 | +- `HTTP_SERVER_NAME` (a [server name](https://httpd.apache.org/docs/2.4/fr/mod/core.html#servername), defaults to `www.example.com`) |
| 9 | +- `HTTPS_SERVER_NAME` (a [server name](https://httpd.apache.org/docs/2.4/fr/mod/core.html#servername), defaults to `www.example.com`) |
| 10 | +- `LOG_LEVEL` (a [log level](https://httpd.apache.org/docs/2.4/fr/mod/core.html#loglevel), defaults to `info`) |
| 11 | +- `TZ` (a [timezone](https://www.php.net/manual/timezones.php), defaults to `UTC`) |
| 12 | +- `PHP_MEMORY_LIMIT` (a [memory-limit](https://www.php.net/manual/ini.core.php#ini.memory-limit), defaults to `256M`) |
| 13 | + |
| 14 | +### Pull |
| 15 | + |
| 16 | +`docker pull julianprieber/littlelink-custom` |
| 17 | + |
| 18 | +### Deployment |
| 19 | + |
| 20 | +Change port *80*, *443* to your preferred values. |
| 21 | + |
| 22 | +Both HTTP and HTTPS are supported and exposed by default. |
| 23 | + |
| 24 | +#### Deploy |
| 25 | + |
| 26 | +<pre> |
| 27 | +docker run --detach \ |
| 28 | + --name littlelink-custom \ |
| 29 | + --publish 80:80 \ |
| 30 | + --publish 443:443 \ |
| 31 | + --restart unless-stopped \ |
| 32 | + julianprieber/littlelink-custom |
| 33 | +</pre> |
| 34 | + |
| 35 | +#### Custom deployment |
| 36 | + |
| 37 | +<pre> |
| 38 | +docker run --detach \ |
| 39 | + --name littlelink-custom \ |
| 40 | + --hostname littlelink-custom \ |
| 41 | + --env HTTP_SERVER_NAME="www.example.xyz" \ |
| 42 | + --env HTTPS_SERVER_NAME="www.example.xyz" \ |
| 43 | + --env SERVER_ADMIN="admin@example.xyz" \ |
| 44 | + --env TZ="Europe/Berlin" \ |
| 45 | + --env PHP_MEMORY_LIMIT="512M" \ |
| 46 | + --publish 80:80 \ |
| 47 | + --publish 443:443 \ |
| 48 | + --restart unless-stopped \ |
| 49 | + julianprieber/littlelink-custom |
| 50 | +</pre> |
| 51 | + |
| 52 | +See [LittleLink Custom](https://github.com/JulianPrieber/littlelink-custom) |
| 53 | + |
| 54 | +<br> |
| 55 | +<br> |
| 56 | + |
| 57 | +--- |
| 58 | + |
| 59 | +<br> |
| 60 | + |
| 61 | +### Build |
| 62 | + |
| 63 | +Download this GitHub repository as well as the latest release of LittleLink Custom from [here](https://github.com/JulianPrieber/littlelink-custom/releases/latest/download/littlelink-custom.zip). |
| 64 | +Place the downloaded release files directly into the littlelink-custom folder from this repository. |
| 65 | + |
| 66 | +From the docker directory, run the command: |
| 67 | +<pre> |
| 68 | +docker build -t littlelink-custom . |
| 69 | +</pre> |
| 70 | + |
| 71 | + |
0 commit comments