commit
8fda8ed650
|
|
@ -49,7 +49,7 @@ $ docker run -d -p 80:80 \
|
||||||
The default `Caddyfile` only listens to port `80`, and does not set up automatic TLS. However, if you have a domain name for your site, and its A/AAAA DNS records are properly pointed to this machine's public IP, then you can use this command to simply serve a site over HTTPS:
|
The default `Caddyfile` only listens to port `80`, and does not set up automatic TLS. However, if you have a domain name for your site, and its A/AAAA DNS records are properly pointed to this machine's public IP, then you can use this command to simply serve a site over HTTPS:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run -d -p 80:80 -p 443:443 \
|
$ docker run -d -p 80:80 -p 443:443 -p 443:443/udp \
|
||||||
-v /site:/srv \
|
-v /site:/srv \
|
||||||
-v caddy_data:/data \
|
-v caddy_data:/data \
|
||||||
-v caddy_config:/config \
|
-v caddy_config:/config \
|
||||||
|
|
@ -123,6 +123,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
- "443:443/udp"
|
||||||
volumes:
|
volumes:
|
||||||
- $PWD/Caddyfile:/etc/caddy/Caddyfile
|
- $PWD/Caddyfile:/etc/caddy/Caddyfile
|
||||||
- $PWD/site:/srv
|
- $PWD/site:/srv
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue