Hi,
I have trying to add subdominains to our certificates, before with other domain I did no problems but with dockers it is being a nightmare, it was working fine with domain.com and www.domain. But I am not capable to do add new domains.
My configuartion is like the one bellow:
services:
webserver:
image: nginx:1.15.12-alpine
container_name: webserver
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /home/dos/WP2/wordpress_data:/var/www/html
- ./nginx-conf:/etc/nginx/conf.d
- certbot-etc:/etc/letsencrypt
networks:
- app-network
certbot:
depends_on:
- webserver
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- /home/dos/WP2/wordpress_data:/var/www/html
command: certonly --webroot --webroot-path=/var/www/html --email me@example.com --agree-tos --no-eff-email --force-renewal -d example.com -d www.example.com -d meet.example.com -d git.example.com -d registry.example.com
I have tried to do it manually:
docker-compose run --rm certbot certonly --manual --email me@example.com --agree-tos --expand -d example.com -d www.example.com -d meet.example.com -d git.example.com -d registry.example.com --dry-run
But I got this error message:
Certbot failed to authenticate some domains (authenticator: manual). The Certificate Authority reported these problems:
Domain: example.com
Type: connection
Detail: 130.100.00.42: Fetching http://example.com/.well-known/acme-challenge/hnIEzc318Xh9WfeoPWXFUiGvn_nlT1lCvM5N2LhYMno: Connection refused
Domain: git.example.com
Type: connection
Detail: 130.100.00.42: Fetching http://git.example.com/.well-known/acme-challenge/pgs9tOu4OVH7EeNV5sl5WzFO8eQmxcPbJU9qZkTjtno: Connection refused
Domain: meet.example.com
Type: connection
Detail: 130.100.00.42: Fetching http://meet.example.com/.well-known/acme-challenge/duBHKd6iU-XzqPJ7-DM4SI63yrVzv1idRawFAiaIxiE: Connection refused
Domain: www.example.com
Type: connection
Detail: 130.100.00.42: Fetching http://www.example.com/.well-known/acme-challenge/ucrHIvuBvVXirlW5omm2b7dpLQnIYhO4AIs1PMiqh80: Connection refused
Hint: The Certificate Authority failed to verify the manually created challenge files. Ensure that you created these in the correct location.
Any idea?
Thank you in advace