Open
Description
Ubuntu 22.04
Swarm
docker version
Client:
Version: 20.10.12
API version: 1.41
Go version: go1.16.2
Git commit: 20.10.12-0ubuntu2~20.04.1
Built: Wed Apr 6 02:14:38 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.12
API version: 1.41 (minimum version 1.12)
Go version: go1.16.2
Git commit: 20.10.12-0ubuntu2~20.04.1
Built: Thu Feb 10 15:03:35 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.9-0ubuntu1~20.04.1
GitCommit:
runc:
Version: 1.1.0-0ubuntu1~20.04.1
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:
version: '3.9'
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- /app/nginx/certs:/etc/nginx/certs
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- nginx
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.labels.type == masternode]
nginx-proxy-home:
image: nginx
environment:
- VIRTUAL_HOST=myrealdomain.ru
- LETSENCRYPT_HOST=myrealdomain.ru
volumes:
- /app/nginx/conf.d/:/etc/nginx/conf.d
networks:
- nginx
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.labels.type == masternode]
nginx-proxy-letsencrypt:
image: nginxproxy/acme-companion
volumes:
- /app/nginx/certs:/etc/nginx/certs
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
depends_on:
- nginx-proxy
networks:
- nginx
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.labels.type == masternode]
networks:
nginx:
name: nginx
external: true
volumes:
vhost.d:
html:
acme:
After launch
nginx-proxy-letsencrypt logs
Info: running acme-companion version v2.2.1
jq: error (at <stdin>:1): Cannot iterate over null (null)
Error: can't get docker-gen container id !
If you are running a three containers setup, check that you are doing one of the following :
- Set the NGINX_DOCKER_GEN_CONTAINER env var on the letsencrypt-companion container to the name of the docker-gen container.
- Label the docker-gen container to use with 'com.github.jrcs.letsencrypt_nginx_proxy_companion.docker_gen'.
Can't figure out what to do about it? How to make it work?
know that you can do without the second nginx "nginx-proxy-home" using traefik. But so far I haven't been able to figure it out.
Metadata
Metadata
Assignees
Labels
No labels