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

Cannot start service certbot #8

Closed
dfsoeten opened this issue Jan 9, 2019 · 5 comments
Closed

Cannot start service certbot #8

dfsoeten opened this issue Jan 9, 2019 · 5 comments

Comments

@dfsoeten
Copy link

dfsoeten commented Jan 9, 2019

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
Copy link
Author

dfsoeten commented Jan 9, 2019

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

@BirgerK
Copy link
Owner

BirgerK commented Jan 9, 2019

Seems to be an issue from docker-compose: docker/compose#5745

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

@dfsoeten
Copy link
Author

dfsoeten commented Jan 9, 2019

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
Copy link
Owner

BirgerK commented Jan 9, 2019

yeah, that's necessary

@dfsoeten
Copy link
Author

dfsoeten commented Jan 9, 2019

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

@dfsoeten dfsoeten closed this as completed Jan 9, 2019
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