https://github.com/iamd3vil/caddy-alpine
Docker image for caddy built from source
https://github.com/iamd3vil/caddy-alpine
caddy caddyserver docker docker-image
Last synced: about 1 month ago
JSON representation
Docker image for caddy built from source
- Host: GitHub
- URL: https://github.com/iamd3vil/caddy-alpine
- Owner: iamd3vil
- License: mit
- Created: 2017-09-17T10:12:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-01T06:43:57.000Z (over 8 years ago)
- Last Synced: 2025-10-10T14:28:18.928Z (9 months ago)
- Topics: caddy, caddyserver, docker, docker-image
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Caddy-Alpine
Builds caddy from source and runs it in a Alpine image.
Since it builds from source, EULA doesn't apply for this docker image.
Uses multistage builds to minimize the size of the image.
# Caddyfile
`caddy-alpine` is configured to get the Caddyfile from `/etc/Caddyfile`. We can mount a volume from host to `/etc/Caddyfile` to supply your own Caddyfile.
# Saving certicates
Certificates are always stored inside the image at `/app`. So we can make a volume so that certs are not generated everytime we start since Let's Encrypt is rate limited.
# Example
```bash
docker run -p 80:80 -p 443:443 \
-v /etc/Caddyfile:/etc/Caddyfile \
-v /root/.caddy/:/app \
iamd3vil/caddy-alpine
```