https://github.com/wearejh/caddy
Caddy docker image for local development
https://github.com/wearejh/caddy
docker docker-image
Last synced: about 1 month ago
JSON representation
Caddy docker image for local development
- Host: GitHub
- URL: https://github.com/wearejh/caddy
- Owner: WeareJH
- Created: 2018-07-26T06:56:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-26T07:23:12.000Z (almost 8 years ago)
- Last Synced: 2025-08-30T05:42:04.818Z (10 months ago)
- Topics: docker, docker-image
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 1
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Caddy for Local Development
This is a simple Caddy Docker image to get up and running with self signed SSL.
By default it will accept all requests that come to it, verify SSL with a self signed cert then pass over to a host called `nginx`
## Usage
With `docker-compose.yml` add it as a service alongisde your `nginx` service
_**Example:** Trimmed docker-compose.yml file_
```
...
caddy:
image: wearejh/caddy
links:
- nginx
ports:
- "80:80"
- "443:443"
...
```
## Customising ...
If you'd like to customise the Caddyfile, maybe to change the service hostnames, add extra functionality etc then you can do this by mounting your custom Caddyfile via a single file volume.
_**Example:** Trimmed docker-compose.yml file_
```
...
caddy:
image: wearejh/caddy
volumes:
- path/to/local/Caddyfile:/etc/Caddyfile
links:
- nginx
ports:
- "80:80"
- "443:443"
...
```