$ docker run --detach \ --name nginx-proxy-acme \ --volumes-from nginx-proxy \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ --volume acme:/etc/acme.sh \ --env"DEFAULT_EMAIL=mail@yourdomain.tld"\ nginxproxy/acme-companion ...
Three writable volumes must be declared on thenginx-proxycontainer so that they can be shared with theletsencrypt-nginx-proxy-companioncontainer: /etc/nginx/certsto store certificates, private keys and ACME account keys (readonly for thenginx-proxycontainer). ...
5. 将证书文件拷到NginxProxyManager的证书目录下 cp #第二步中设置的路径#/out/*.pem #你的NginxProxyManager路径#/custom_ssl/npm-4/ (注意这个npm-4可能不一样,在此路径下的文件夹找一个数字最大的拷进去就好) 注意两个路径中间要有个空格 6. 重启NginxProxyManager 下面两个二选一执行即可 docker exec...
一台运行Unraid操作系统的服务器。 已安装并配置好的Nginx Proxy Manager容器。 开放的80和443端口(或用于内网穿透的其他端口)。 二、申请免费HTTPS证书 登录Unraid管理界面,打开Nginx Proxy Manager容器设置。 在Nginx Proxy Manager界面创建一个新的站点,并配置好域名、端口等基本信息。 在站点设置中找到SSL/TLS部分,...
Start the acme-companion container, getting the volumes from nginx-proxy with --volumes-from: $ docker run --detach \ --name nginx-proxy-acme \ --volumes-from nginx-proxy \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ --volume acme:/etc/acme.sh \ --env "DEFAULT_EMAIL...
First start nginx with the 3 volumes declared: $ docker run -d -p 80:80 -p 443:443 \ --name nginx-proxy \ -v /path/to/certs:/etc/nginx/certs:ro \ -v /etc/nginx/vhost.d \ -v /usr/share/nginx/html \ -v /var/run/docker.sock:/tmp/docker.sock:ro \ --label com.github...
-v certs:/etc/nginx/certs:ro on the nginx-proxy or nginx + docker-gen container(s). -v certs:/etc/nginx/certs:rw on the acme-companion container. Ownership & permissions of private and ACME account keys By default, the acme-companion container will enforce the following ownership and perm...
acme-companion: image: nginxproxy/acme-companion container_name: nginx-proxy-acme volumes_from: - nginx-proxy volumes: - certs:/etc/nginx/certs:rw - acme:/etc/acme.sh - /var/run/docker.sock:/var/run/docker.sock:ro network_mode: bridge volumes: conf: vhost: html: dhparam: certs: acme...
Hey folks, I've got my SSL setup, but no matter what I do on docker-compose, I always end up getting a nginx error 502 (Bad Gateway) Here's my project root docker-compose.yml for analysis version: "3" services: psa-api: container_name: p...
I'm using this docker image along with a seperate nginx and docker-gen container. Everything works fine most of the time, however sometimes the nginx proxy uses the default certificate instead of the generated ones, even if the nginx con...