Dynamic Under Maintenance page
58
A lightweight and customizable Docker maintenance page with a live countdown timer.
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:
bash
docker compose up -d
Access the maintenance page:
| Variable | Description |
|---|---|
DOWNTIME_HOURS | Maintenance duration in hours |
DOWNTIME_MINUTES | Additional duration in minutes |
PAGE_TITLE | Maintenance page title |
PAGE_MESSAGE | Custom maintenance message |
TIMEZONE | Display timezone |
Note: The maintenance-state volume preserves the original countdown deadline across container restarts and recreations.
https://hub.docker.com/r/ibraransaridocker/maintenance-page
Made with ❤️ for simple and reliable website maintenance.
Content type
Image
Digest
sha256:500b3b958…
Size
20.1 MB
Last updated
1 day ago
docker pull ibraransaridocker/maintenance-page