HUB
Sign inSign up
maintenance-page logo

ibraransaridocker/maintenance-page

By ibraransaridocker

•Updated 1 day ago

Dynamic Under Maintenance page

Image
0

58

ibraransaridocker/maintenance-page repository overview

⁠Maintenance Page

A lightweight and customizable Docker maintenance page with a live countdown timer.

⁠Features
  • Live maintenance countdown timer
  • Persistent countdown across container restarts
  • Custom page title and message
  • Configurable maintenance duration
  • Timezone support
  • Docker health check
⁠Docker Compose

Create a docker-compose.yml file:

yaml

services:
  maintenance-page:
    image: ibraransaridocker/maintenance-page
    container_name: maintenance-page
    restart: unless-stopped
    ports:
      - "8080:80"
    environment:
      DOWNTIME_HOURS: "2"
      DOWNTIME_MINUTES: "35"
      PAGE_TITLE: "We'll Be Back Soon!"
      PAGE_MESSAGE: "Our service is currently undergoing scheduled maintenance. We're making things better and will be back shortly. Thank you for your patience."
      TIMEZONE: "Asia/Kolkata"
    volumes:
      - maintenance-state:/var/run/maintenance
    healthcheck:
      test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1/ || exit 1"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 5s

volumes:
  maintenance-state:
⁠Start

bash

docker compose up -d

Access the maintenance page:

http://localhost:8080⁠

⁠Configuration
VariableDescription
DOWNTIME_HOURSMaintenance duration in hours
DOWNTIME_MINUTESAdditional duration in minutes
PAGE_TITLEMaintenance page title
PAGE_MESSAGECustom maintenance message
TIMEZONEDisplay timezone

Note: The maintenance-state volume preserves the original countdown deadline across container restarts and recreations.

⁠Docker Hub

https://hub.docker.com/r/ibraransaridocker/maintenance-page⁠

Made with ❤️ for simple and reliable website maintenance.

Tag summary

Content type

Image

Digest

sha256:500b3b958…

Size

20.1 MB

Last updated

1 day ago

docker pull ibraransaridocker/maintenance-page