Skip to content

Commit 239d05b

Browse files
committed
bump webproc and caddy
1 parent 9da7905 commit 239d05b

File tree

3 files changed

+35
-36
lines changed

3 files changed

+35
-36
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
FROM alpine:3.6
1+
FROM alpine:latest
22
LABEL maintainer="[email protected]"
33
# webproc release settings
4-
ENV WEBPROC_VERSION 0.1.9
4+
ENV WEBPROC_VERSION 0.2.2
55
ENV WEBPROC_URL https://github.com/jpillora/webproc/releases/download/$WEBPROC_VERSION/webproc_linux_amd64.gz
6-
ENV CADDY_VERSION 0.10.10
6+
ENV CADDY_VERSION 0.11.1
77
ENV CADDY_URL https://github.com/mholt/caddy/releases/download/v${CADDY_VERSION}/caddy_v${CADDY_VERSION}_linux_amd64.tar.gz
8-
# fetch caddy and webproc binary
8+
# fetch caddy and webproc binary (rely on ca root certs signing github.com for security)
9+
RUN set -e && set -x
910
RUN apk update \
1011
&& apk add ca-certificates \
1112
&& apk add --no-cache --virtual .build-deps curl \

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 Jaime Pillora
3+
Copyright (c) 2018 Jaime Pillora
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# docker-caddy
32

43
[Caddy](https://caddyserver.com/) in a docker container, configurable via a [simple web UI](https://github.com/jpillora/webproc)
@@ -12,49 +11,48 @@
1211

1312
1. Create a [`/opt/Caddyfile`](https://caddyserver.com/docs/caddyfile) file on the Docker host
1413

15-
``` ini
16-
# Caddy config, for a more information, see:
17-
# https://caddyserver.com/docs/caddyfile
18-
:80 {
19-
gzip
20-
log stdout
21-
proxy / example.com
22-
}
23-
```
14+
```ini
15+
# Caddy config, for a more information, see:
16+
# https://caddyserver.com/docs/caddyfile
17+
:80 {
18+
gzip
19+
log stdout
20+
proxy / example.com
21+
}
22+
```
2423

2524
1. Run the container
2625

27-
```
28-
$ docker run \
29-
--name caddy \
30-
-d \
31-
-p 58080:8080 \
32-
-p 80:80 -p 443:443 \
33-
-v /opt/Caddyfile:/etc/Caddyfile \
34-
-v /opt/caddy:/root/.caddy \
35-
--log-opt "max-size=100m" \
36-
-e "USER=foo" \
37-
-e "PASS=bar" \
38-
--restart always \
39-
jpillora/caddy
40-
```
26+
```
27+
$ docker run \
28+
--name caddy \
29+
-d \
30+
-p 58080:8080 \
31+
-p 80:80 -p 443:443 \
32+
-v /opt/Caddyfile:/etc/Caddyfile \
33+
-v /opt/caddy:/root/.caddy \
34+
--log-opt "max-size=100m" \
35+
-e "HTTP_USER=foo" \
36+
-e "HTTP_PASS=bar" \
37+
--restart always \
38+
jpillora/caddy
39+
```
4140

4241
1. Visit `http://<docker-host-ip>:58080`, authenticate with `foo/bar` and you should see
4342

44-
![screen shot 2017-10-05 at 6 27 53 pm](https://user-images.githubusercontent.com/633843/31215368-f2ab2842-a9fa-11e7-83b7-fa917a022f08.png)
45-
43+
![screen shot 2017-10-05 at 6 27 53 pm](https://user-images.githubusercontent.com/633843/31215368-f2ab2842-a9fa-11e7-83b7-fa917a022f08.png)
4644

47-
1. You now have an HTTP web server running at `http://<your-hostname>`
45+
1) You now have an HTTP web server running at `http://<your-hostname>`
4846

49-
1. Using your DNS provider, create A record: `<docker-host-ip>` to `<your-hostname>`
47+
1) Using your DNS provider, create A record: `<docker-host-ip>` to `<your-hostname>`
5048

51-
1. Change `:80` to `https://<your-hostname>:443`, and add a new line `tls <your-email>` above the `gzip` line, then **Restart**
49+
1) Change `:80` to `https://<your-hostname>:443`, and add a new line `tls <your-email>` above the `gzip` line, then **Restart**
5250

53-
1. You now have an HTTPS web server running at `https://<your-hostname>`
51+
1) You now have an HTTPS web server running at `https://<your-hostname>`
5452

5553
Extras
5654

57-
* Bind the web UI to an internal IP address `-p <internal-ip>:58080:8080` and then it might be safe to remove `USER`/`PASS`
55+
- Bind the web UI to an internal IP address `-p <internal-ip>:58080:8080` and then it might be safe to remove `USER`/`PASS`
5856

5957
#### MIT License
6058

0 commit comments

Comments
 (0)