|
2 years ago | |
---|---|---|
root/etc | 2 years ago | |
.drone.yml | 2 years ago | |
Dockerfile | 2 years ago | |
README.md | 3 years ago | |
plugins.txt | 3 years ago |
Insecure example serving the contents of ./website
on port 80:
version: '2'
services:
caddy:
image: docker.jcg.re/caddy
container_name: caddy
ports:
- 80:80
volumes:
- ./website:/var/www/
Secure example serving the contents of ./website
on https://example.com/ with an automatic redirect to https:
version: '2'
services:
caddy:
image: docker.jcg.re/caddy
container_name: caddy
ports:
- 80:80
- 443:443
volumes:
- ./website:/var/www/
environment:
- DOMAIN=example.com
- EMAIL=you@example.com
Custom example doing whatever-the-fuck-you-want (take a look at https://caddyserver.com/docs):
version: '2'
services:
caddy:
image: docker.jcg.re/caddy
container_name: caddy
ports:
- 80:80
- 443:443
volumes:
- ./website:/var/www
- ./Caddyfile:/etc/Caddyfile