From dce0034edae2f25287a49ef5efb24a7aed12b299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Fri, 2 Jul 2021 16:26:15 +0300 Subject: [PATCH] Update Dockerfile to use Caddy 2 --- Dockerfile | 4 ++-- README.md | 12 ++++++++---- docker-compose.yml | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9647c4a..5fe7f05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM abiosoft/caddy +FROM caddy:2 -COPY index.html /srv/ +COPY index.html /usr/share/caddy/ diff --git a/README.md b/README.md index b6b1eab..f19fe69 100644 --- a/README.md +++ b/README.md @@ -70,10 +70,14 @@ in your project ## Docker image -There is an official [Healthchecks.io Status Dashboard Docker image](https://hub.docker.com/r/healthchecks/dashboard) on Docker Hub ready to use. The image is [automatically built](https://github.com/healthchecks/dashboard/actions/workflows/publish_docker_image.yml) on each commit. +There is an official [Healthchecks.io Status Dashboard Docker image](https://hub.docker.com/r/healthchecks/dashboard) +on Docker Hub ready to use. The image is [automatically built](https://github.com/healthchecks/dashboard/actions/workflows/publish_docker_image.yml) +on each commit. + +The image starts a lightweight [Caddy 2 Webserver](https://caddyserver.com/) with the +dashboard at the webserver's root. The example below starts a one-off, interactive +container serving on port 8080 (`CTRL+C` to stop it): -The image starts a lightweight [Caddy Webserver](https://caddyserver.com/) with the dashboard at the webserver's root. -The example below starts a one-off, interactive container serving on port 8080 (`CTRL+C` to stop it): ``` -$ docker run --rm -it -p 8080:2015 healthchecks/dashboard +$ docker run --rm -it -p 8080:80 healthchecks/dashboard ``` diff --git a/docker-compose.yml b/docker-compose.yml index 60208f7..d8ce296 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,4 +3,4 @@ dashboard: build: . # image: healthchecks/dashboard ports: - - "80:2015" + - "80:80"