Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom 503 #6

Merged
merged 4 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Force all line endings to be LF, since the project is
# always ran in a Unix-based environment.
* text=auto
* text eol=lf

#
# The above will handle all files NOT found below
#
# These files are text and should be normalized (Convert crlf => lf)
*.css text
*.html text
*.java text
*.js text
*.json text
*.properties text
*.sh text
*.ts text
*.txt text
*.xml text
*.conf text

# These files are binary and should be left untouched
# (binary is macro for -text -diff)
*.class binary
*.jar binary
*.gif binary
*.jpg binary
*.png binary
*.rlib binary
*.rmeta binary
*.wasm binary
*.dylib binary
39 changes: 39 additions & 0 deletions 50x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Service Unavailable</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #222;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.error-container {
text-align: center;
padding: 20px;
}
h1 {
font-size: 24px;
margin-bottom: 20px;
}
p {
font-size: 16px;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="error-container">
<h1>Service Temporarily Unavailable</h1>
<p>We apologize, but our service is currently undergoing maintenance.</p>
<p>Please check back shortly. Thank you for your patience.</p>
</div>
</body>
</html>
29 changes: 16 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,39 @@ version: '2'
services:

nginx-proxy:
image: jwilder/nginx-proxy:dev
image: jwilder/nginx-proxy:1.6.0-alpine
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
networks:
- proxy
volumes:
- conf:/etc/nginx/conf.d
- ./my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf:ro
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf:ro
- ./50x.html:/usr/share/nginx/html/errors/50x.html:ro
networks:
- proxy
restart: always

letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-proxy-le
depends_on:
- nginx-proxy
acme-companion:
image: nginxproxy/acme-companion:2.4.0
container_name: nginx-proxy-acme
volumes_from:
- nginx-proxy
networks:
- proxy
volumes:
- certs:/etc/nginx/certs
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- [email protected]
networks:
- proxy
depends_on:
- nginx-proxy
restart: always

volumes:
Expand All @@ -46,4 +49,4 @@ volumes:
networks:
proxy:
external:
name: nginx-proxy
name: nginx-proxy
Loading