Files
npm-maintenance/docker/container-snippet-docker-compose.yml
2026-07-25 15:39:10 -04:00

14 lines
632 B
YAML

# --- add this snippet to your existing docker-compose.yml file ---
# --- this will define a small container that will serve the maintenance page you define in /maintenance/index.html---
# --- this assumes you have a docker network by the name nginxproxymanager ---
# --- this container must have access to the same docker network as your nginx proxy manager container to function ---
# --- Maintenance page container ---
maintenance:
image: nginx:alpine
restart: unless-stopped
volumes:
- ./maintenance:/usr/share/nginx/html:ro
networks:
- nginxproxymanager
# ----------------------------------