Run Nextjs Cluster based on Alpine Linux. Small, lightweight, secure and fast 🏔️
1.9K
Run Nextjs Cluster based on Alpine Linux. Small, lightweight, secure and fast 🏔️
Use this image as a base layer to deploy or develop your nodejs application with express. Simply add your code and your package.json to -v .../app:/next. You can use the existing express.js class if you want, like this:
docker run --name nextjs-cluster \
-v ../js:/next/js \
-d 11notesnextjs-cluster:[tag]
Overcommit (run more forks than CPUs available)
docker run --name nextjs-cluster \
-v ../js:/next/js \
-e PORTS=8080-8100 \
-e OVERCOMMIT=true \
-d 11notesnextjs-cluster:[tag]
| Parameter | Value | Description |
|---|---|---|
user | docker | user docker |
uid | 1000 | user id 1000 |
gid | 1000 | group id 1000 |
home | /next | home directory of user docker |
| Parameter | Value | Default |
|---|---|---|
TZ | Time Zone | |
DEBUG | Show debug information | |
JS | path to javascript file for fork() | /next/js/server.js |
PORTS | port range | 8080-8080+n(cpus) |
IP | localhost or 127.0.0.1 or a dedicated IP | 0.0.0.0 |
OVERCOMMIT | Fork more nodejs than CPU availabile | false |
${{ CONTENT:11NOTES:IMAGE:NODE }}
Content type
Image
Digest
sha256:f70f22483…
Size
133.6 MB
Last updated
over 2 years ago
docker pull 11notes/nextjs-cluster