Hello !
I'm trying to host my small app on dochome.fr.
I had a AAAA ipv6 DNS zone that i deleted after several attempts.
Now I only have A zone with my IPV4 address linked to dochome.fr and www.dochome.fr.
I don't use certbot nor nginx directly on my VPS, it is hosted in its own container on docker running on that same VPS.
I'm not certain if putting my app directory to /opt/DocHome is the best idea, maybe its not you tell me.
The docker-compose file has several blocks,
# Nginx Reverse Proxy
nginx:
image: nginx:alpine
container_name: dochome-nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
- certbot_data:/var/www/certbot
depends_on:
- frontend
- backend
networks:
- dochome-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
# Certbot for SSL certificates
certbot:
image: certbot/certbot:latest
container_name: dochome-certbot
volumes:
- ./nginx/ssl:/etc/letsencrypt
- certbot_data:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
- dochome-network
volumes:
postgres_data:
driver: local
certbot_data:
driver: local
networks:
dochome-network:
driver: bridge
My domain is:
I ran this command:
docker run --rm -v certbot_data:/var/www/certbot -v ./nginx/ssl:/etc/letsencrypt certbot/certbot certonly --webroot -w /var/www/certbot -d dochome.fr -d www.dochome.fr --email john@doe.com --agree-tos --no-eff-email
It produced this output:
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: dochome.fr
Type: unauthorized
Detail: 51.210.244.140: Invalid response from http://dochome.fr/.well-known/acme-challenge/23LmGSrpo1kMo3CKHK-v_Hf8sTDy0eu5DI5c-bCoLEY: 404
My web server is (include version):
The operating system my web server runs on is (include version):
Debian 12
My hosting provider, if applicable, is:
OVH Cloud
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
Kind of, i have a Dashboard on OVH to manage Domains, VPS, DNS zones
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
Not using certbot from my VPS. Using docker instead
Can you help me please ![]()
Kind,