BirgerK / docker-apache-letsencrypt

This docker-image contains a simple Apache webserver and supports https-encryption by great Let's Encrypt certificates!
67 stars 47 forks source link

Cannot start service certbot #8

Closed dfsoeten closed 5 years ago

dfsoeten commented 5 years ago

Hey, I'm trying to include this in my personal project to automatically setup SSL with docker & docker-compose.

When I try to start my containers with docker-compose -f docker-compose.yml -f docker-compose.production.yml up I get the following error: ERROR: for certbot Cannot start service certbot: network <hash> not found.

I put the following in my docker-compose.production.yml file:

certbot:
        image: birgerk/apache-letsencrypt
        environment:
            - "DOMAINS=${DOMAIN_NAME},www.${DOMAIN_NAME}"
            - "WEBMASTER_MAIL=${MAIL_ADDRESS}"

Do you have any idea what I could be doing wrong?

dfsoeten commented 5 years ago

I probably found a solution to this problem, take a look over here.

BirgerK commented 5 years ago

Seems to be an issue from docker-compose: https://github.com/docker/compose/issues/5745

Did you try running it with the flag --force-recreate?

dfsoeten commented 5 years ago

That brought the services up at least, but it doesn't seem to install the SSL certificate. That might has to do with this 🤦‍♂️

BirgerK commented 5 years ago

yeah, that's necessary

dfsoeten commented 5 years ago

Aight okay, I need to play with that for a bit. Thanks for your help!