Update Dockerfile to use Caddy 2

This commit is contained in:
Pēteris Caune
2021-07-02 16:26:15 +03:00
parent 1407e93bf4
commit dce0034eda
3 changed files with 11 additions and 7 deletions

View File

@@ -1,3 +1,3 @@
FROM abiosoft/caddy
FROM caddy:2
COPY index.html /srv/
COPY index.html /usr/share/caddy/

View File

@@ -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
```

View File

@@ -3,4 +3,4 @@ dashboard:
build: .
# image: healthchecks/dashboard
ports:
- "80:2015"
- "80:80"