Puts Docker Containers to sleep and wakes them back up when they're needed
  • HTML 77.4%
  • Dockerfile 22.6%
Find a file
2026-04-25 21:36:21 +02:00
Dockerfile initial commit 2026-04-25 20:50:31 +02:00
LICENSE Initial commit 2026-04-25 18:28:25 +00:00
README.md readme 2026-04-25 21:36:21 +02:00
wakeuppage.html initial commit 2026-04-25 20:50:31 +02:00

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