Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hectorm/docker-caddy
A Docker image for Caddy.
https://github.com/hectorm/docker-caddy
Last synced: 11 days ago
JSON representation
A Docker image for Caddy.
- Host: GitHub
- URL: https://github.com/hectorm/docker-caddy
- Owner: hectorm
- License: mit
- Created: 2019-10-02T21:49:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T14:43:17.000Z (2 months ago)
- Last Synced: 2024-10-10T16:23:07.798Z (24 days ago)
- Language: Makefile
- Homepage: https://hub.docker.com/r/hectorm/caddy
- Size: 535 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Caddy on Docker
A Docker image for [Caddy](https://caddyserver.com).
## Examples
### Serve the current directory
```sh
docker run --rm -it \
--publish 80:80/tcp \
--publish 443:443/tcp \
--publish 443:443/udp \
--mount type=bind,src="$PWD",dst=/var/www/html/,ro \
docker.io/hectorm/caddy:latest
```### Serve `/var/www/html/` directory and use `/etc/caddy/Caddyfile` file as config
```sh
docker run --rm -it \
--publish 80:80/tcp \
--publish 443:443/tcp \
--publish 443:443/udp \
--mount type=bind,src=/etc/caddy/Caddyfile,dst=/etc/caddy/Caddyfile,ro \
--mount type=bind,src=/var/www/html/,dst=/var/www/html/,ro \
docker.io/hectorm/caddy:latest
```