Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

letsencrypt is never initialized #14

Open
koo5 opened this issue Apr 10, 2021 · 4 comments
Open

letsencrypt is never initialized #14

koo5 opened this issue Apr 10, 2021 · 4 comments

Comments

@koo5
Copy link

koo5 commented Apr 10, 2021

*** Running /etc/my_init.d/init_letsencrypt.sh...
*** Booting runit daemon...
*** Runit started as PID 26

/etc/letsencrypt contains cli.ini, so this check:

if ([ ! -d $LETSENCRYPT_HOME ] || [ ! "$(ls -A $LETSENCRYPT_HOME)" ]) && [ ! -z "$DOMAINS" ]; then
  /run_letsencrypt.sh --domains $DOMAINS
fi

fails?

@rckvwijk
Copy link

Wondering the same, i've filled the domain ENV but it is not generating the certificates.

@koo5
Copy link
Author

koo5 commented May 1, 2021

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..

@rckvwijk
Copy link

rckvwijk commented May 1, 2021

Ah that sounds good, got any code examples?

@koo5
Copy link
Author

koo5 commented May 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants