Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexanderjulo/caddy-gen
Automatically generates Caddyfile for running containers
https://github.com/alexanderjulo/caddy-gen
Last synced: 5 days ago
JSON representation
Automatically generates Caddyfile for running containers
- Host: GitHub
- URL: https://github.com/alexanderjulo/caddy-gen
- Owner: alexanderjulo
- Created: 2016-04-23T13:24:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T12:27:14.000Z (almost 8 years ago)
- Last Synced: 2024-08-02T12:50:37.955Z (3 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - alexanderjulo/caddy-gen - Automatically generates Caddyfile for running containers (others)
README
# caddy-gen
Automatically generate a central Caddyfile for many containers.
First off, start the generator container:
docker run -e LETSENCRYPT_EMAIL= -v :/etc/caddy -v /var/run/docker.sock:/var/run/docker.sock alexanderjulo/caddy-gen
Then start whatever service you want to be proxied (which has to either expose or publish the port you want to be exposed to the open):
docker run -e VIRTUAL_HOST= -p dockercloud/hello-world
Then start a caddy container that will handle all your outbound traffic:
docker run -l autocaddy=1 -v :/var/www/html/Caddyfile:ro -v sslcerts:/etc/ssl/certs -p 80:80 -p 443:443 joshix/caddy