diff --git a/503.html b/50x.html similarity index 84% rename from 503.html rename to 50x.html index c3c0165..cd7e24a 100644 --- a/503.html +++ b/50x.html @@ -3,7 +3,7 @@ - 503 Service Unavailable + Service Unavailable -

503 Service Unavailable

+

Service Unavailable

We're sorry, but our service is temporarily unavailable. Please try again later.

\ No newline at end of file diff --git a/custom_error_pages.conf b/custom_error_pages.conf deleted file mode 100644 index 63fc076..0000000 --- a/custom_error_pages.conf +++ /dev/null @@ -1,11 +0,0 @@ -server { - listen 80; - server_name _; # This will match any server name - - error_page 503 /503.html; - - location = /503.html { - root /usr/share/nginx/html; - internal; - } -} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index a65ef1c..c689aa3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: + - DEFAULT_EMAIL=your-email@example.com + networks: + - proxy + depends_on: + - nginx-proxy restart: always volumes: @@ -48,4 +49,4 @@ volumes: networks: proxy: external: - name: nginx-proxy + name: nginx-proxy \ No newline at end of file