Puts Docker Containers to sleep and wakes them back up when they're needed
- HTML 77.4%
- Dockerfile 22.6%
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
| wakeuppage.html | ||
Container Nursery
This is a fork of: https://github.com/ItsEcholot/ContainerNursery
Why ?
I'm neither a Node developer nor a TypeScript developer.
But I found this service very useful.
Since it hadn't been updated in three years, I tried to recreate a more “up-to-date” Docker image.
Updates
- Based on the latest official image
- I use a custom, improved loading page, wakeuppage.html, which is symboliced to the original file placeholder.ejs
- Built on the node:25-alpine Docker image for updated Node components
- All system-installed packages are updated at build time
- npm is also updated to the latest version
- Node packages are also updated (patches and minor updates)
Availability
On Docker Hub: https://hub.docker.com/r/kraoc/containernursery
Usage (docker compose)
networks:
containernursery:
name: containernursery
driver: bridge
enable_ipv6: false
services:
containernursery:
user: 0:0
privileged: true
cap_drop:
- ALL
read_only: true
container_name: containernursery
hostname: containernursery
image: kraoc/containernursery:latest
healthcheck:
test: uname -a || exit 1
interval: 60s
timeout: 10s
retries: 5
start_period: 60s
ports:
- "8080:80"
expose:
- "80"
networks:
- containernursery
environment:
DOCKER_HOST: "unix:///var/run/docker.sock"
TZ: "UTC"
TIMEZONE: "UTC"
CN_LOG_JSON: true
CN_LOG_LEVEL: info
environment:
- ./env/containernursery.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# - ./conf:/usr/src/app/config:ro
# - ./datas/wakeuppage.html:/usr/src/app/views/placeholder.ejs:ro
Settings
Please refer to the original code: https://github.com/ItsEcholot/ContainerNursery
Changelog
2026-04-25
- First release