setup maintenance container. improve pushman ui

This commit is contained in:
Dobromir Popov
2024-05-08 16:08:14 +03:00
parent 71b5f198ed
commit 4021279fb8
4 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,11 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="bg">
<!-- put that file in the web root of the maintenance container and rename it. We use nginx, so the path is /usr/share/nginx/html/index.html -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Поддръжка на сайта</title>
<style>
body {
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
background-color: #f4f4f4;
color: #333;
text-align: center;
}
h1 {
font-size: 24px;
}
p {
font-size: 16px;
}
</style>
</head>
<body>
<div>
<h1>Поддръжка и обновления!</h1>
<p>Съжаляваме за неудобството, но в момента извършваме поддръжка на сайта. Ще се върнем онлайн скоро!</p>
<p>&mdash; Екипът на ССОМ: Специално Свидетелстване на Обществени Места - София</p>
</div>
</body>
</html>

View File

@ -0,0 +1,19 @@
version: "3.8"
services:
nginx:
hostname: maintenance
image: nginx:latest
volumes:
- /mnt/docker_volumes/maintenance:/usr/share/nginx/html
- /mnt/docker_volumes/maintenance/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "3010:80"
environment:
- NGINX_HOST=nginx
- NGINX_PORT=80
restart: always
networks:
- infrastructure_default
networks:
infrastructure_default:
external: true