Skip to content

Commit c894e4e

Browse files
committed
feat: add maintenance mode HTML page and update Docker Compose configuration for nginx
1 parent b195d59 commit c894e4e

File tree

2 files changed

+54
-8
lines changed

2 files changed

+54
-8
lines changed

conf/dist/maintenance/index.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Maintenance - AzerothCore CMS</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<style>
8+
body {
9+
background: #181c23;
10+
color: #f5f5f5;
11+
font-family: 'Segoe UI', Arial, sans-serif;
12+
display: flex;
13+
flex-direction: column;
14+
align-items: center;
15+
justify-content: center;
16+
height: 100vh;
17+
margin: 0;
18+
}
19+
.container {
20+
background: #23272f;
21+
padding: 2rem 3rem;
22+
border-radius: 12px;
23+
box-shadow: 0 4px 24px rgba(0,0,0,0.3);
24+
text-align: center;
25+
}
26+
.logo {
27+
width: 80px;
28+
margin-bottom: 1rem;
29+
}
30+
h1 {
31+
margin: 0.5rem 0;
32+
font-size: 2rem;
33+
color: #ffd700;
34+
}
35+
p {
36+
color: #b0b8c1;
37+
margin-bottom: 0;
38+
}
39+
</style>
40+
</head>
41+
<body>
42+
<div class="container">
43+
<img class="logo" src="https://azerothcore.org/images/logo.png" alt="AzerothCore Logo">
44+
<h1>Maintenance Mode</h1>
45+
<p>The AzerothCore CMS is currently undergoing scheduled maintenance.<br>
46+
Please check back soon. Thank you for your patience!</p>
47+
</div>
48+
</body>
49+
</html>

docker-compose.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,15 @@ services:
124124
expose:
125125
- "6379"
126126
maintenance:
127-
image: wickerlabs/maintenance
127+
image: nginx
128128
volumes:
129129
- ${DOCKER_CONF_NGINX_PATH:-./conf/dist/nginx-conf}:/etc/nginx/conf.d/
130130
- ${DOCKER_CONF_CERTS_PATH:-./conf/dist/certs/}:/etc/nginx/certs/
131-
environment:
132-
PORT: 443
133-
RESPONSE_CODE: 503
134-
THEME: dark
131+
- ${DOCKER_CONF_NGINX_MAINTENANCE_PAGE:-./conf/dist/maintenance}:/var/www/html
135132
ports:
136-
- 443:443
137-
profiles: [maint]
138-
network_mode: "host"
133+
- ${DOCKER_HTTP_PORTS:-80:80}
134+
- ${DOCKER_HTTPS_PORTS:-443:443}
135+
profiles: [maintenance]
139136

140137
networks:
141138
local-shared-net:

0 commit comments

Comments
 (0)