This is a simple Caddy Docker image to get up and running with self signed SSL.
471
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
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"
...
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"
...
Content type
Image
Digest
Size
16.7 MB
Last updated
about 8 years ago
docker pull wearejh/caddy