Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: https://longhofercloud.twilightparadox.com
I ran this command: sudo docker-compose up -d
docker-compose.yml
version: '3.9'
services:
db:
image: mariadb:10.6
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
restart: always
volumes:
- './db:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=REDACTED
- MARIADB_AUTO_UPGRADE=1
env_file:
- db.env #MYSQL_PASSWORD, MYSQL_DATABASE, MYSQL_USER
redis:
image: redis:alpine
restart: always
app:
image: nextcloud:apache
restart: always
volumes:
- './nextcloud:/var/www/html'
- './data:/var/www/html/data'
environment:
- VIRTUAL_HOST=longhofercloud.twilightparadox.com
- LETSENCRYPT_HOST=longhofercloud.twilightparadox.com
- LETSENCRYPT_EMAIL=REDACTED
- MYSQL_HOST=db
- REDIS_HOST=redis
env_file:
- db.env #MYSQL_PASSWORD, MYSQL_DATABASE, MYSQL_USER
depends_on:
- db
networks:
- proxy-tier
- default
cron:
image: nextcloud:apache
restart: always
volumes:
- './nextcloud:/var/www/html'
entrypoint: /cron.sh
depends_on:
- db
- redis
proxy:
build: ./proxy
restart: always
ports:
- 80:80
- 443:443
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
volumes:
- './certs:/etc/nginx/certs:ro'
- './vhost.d:/etc/nginx/vhost.d'
- './html:/usr/share/nginx/html'
- '/var/run/docker.sock:/tmp/docker.sock:ro'
networks:
- proxy-tier
letsencrypt-companion:
image: nginxproxy/acme-companion
restart: always
volumes:
- './certs:/etc/nginx/certs'
- './acme:/etc/acme.sh'
- './vhost.d:/etc/nginx/vhost.d'
- './html:/usr/share/nginx/html'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
networks:
- proxy-tier
depends_on:
- proxy
networks:
proxy-tier:
volumes:
acme:
db:
data:
certs:
html:
nextcloud:
vhost.d:
Navigating to my domain on local network produced:
NET::ERR_CERT_AUTHORITY_INVALID
Subject: letsencrypt-nginx-proxy-companion
Issuer: letsencrypt-nginx-proxy-companion
Expires on: Nov 3, 2023
Current date: Nov 5, 2022
PEM encoded chain:
The PEM encoded chain listed was the same as the one stored at ./certs/default.crt
Output of tree certs
(the docker volume for the certs):
certs
|-- default.crt
|-- default.key
|-- dhparam.pem
`-- longhofercloud.twilightparadox.com
Navigating to my domain outside LAN produced:
504 Gateway Time-out
nginx/1.21.6
ATT Router (192.168.1.254) Firewall --> NAT/Gaming shows TCP/UDP: 80 and TCP/UPD: 443 open to the host machine.
My web server is (include version): nginx/1.21.6, I think.
The operating system my web server runs on is (include version): Arch Linux
My hosting provider, if applicable, is: freedns.afraid.org?
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):
No.
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
I don't know.
Output of
Output of sudo docker exec <CONTAINER ID> certbot[-auto] --version
:
OCI runtime exec failed: exec failed: unable to start container process: exec "certbot[-auto]": executable file not found in $PATH: unknown
How do I execute this command through docker?
I believe my problem may be at docker-compose.yml --> services: --> app: --> environment: --> VIRTUAL_HOST and LETSENCRYPT_HOST. Do I need to change these values to access the nextcloud app container at my domain?