Skip to content

Commit

Permalink
Custom 503 page? Attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHalloran committed Jul 16, 2024
1 parent dac99f9 commit 2560b7b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 28 deletions.
4 changes: 2 additions & 2 deletions 503.html → 50x.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>503 Service Unavailable</title>
<title>Service Unavailable</title>
<style>
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; }
h1 { color: #444; }
p { color: #666; }
</style>
</head>
<body>
<h1>503 Service Unavailable</h1>
<h1>Service Unavailable</h1>
<p>We're sorry, but our service is temporarily unavailable. Please try again later.</p>
</body>
</html>
11 changes: 0 additions & 11 deletions custom_error_pages.conf

This file was deleted.

31 changes: 16 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +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
- ./custom_error_pages.conf:/etc/nginx/conf.d/custom_error_pages.conf:ro
- ./503.html:/usr/share/nginx/html/503.html: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 @@ -48,4 +49,4 @@ volumes:
networks:
proxy:
external:
name: nginx-proxy
name: nginx-proxy

0 comments on commit 2560b7b

Please sign in to comment.