Open koo5 opened 3 years ago
Wondering the same, i've filled the domain ENV but it is not generating the certificates.
fwiw: i have two people independently using this or a similar setup and happy with it, but to be honest, after reviewing this and similar options, ..well, it's all such a kludge, right? So then i figured out there's also Caddy and Traefik. I'm not so excited about caddy so far - doesn't support older protocols, it takes some time and confusion to realized that you have to learn the more verbose json config syntax to achieve what you need.. But hey, when it works, it's about 5 config file lines and 8 lines in docker-compose.yml and everything's automated - i put it in front of apache that does the dispatching etc, caddy's there just for the ssl. I'm going to try out Traefik next..
Not to diminish the value of good old battle-tested Free Software though! Just saying where the crowd probably went..
Ah that sounds good, got any code examples?
docker-stack.yml:
version: '3.7'
services:
caddy:
image: caddy:2.3.0-alpine
networks:
- frontend
ports:
- "80:80"
- "443:443"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
apache:
...
Caddyfile:
{
debug
}
localhost
reverse_proxy apache
/etc/letsencrypt contains cli.ini, so this check:
fails?