GithubHelp home page GithubHelp logo

pini-gh / acme-companion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nginx-proxy/acme-companion

10.0 10.0 5.0 1.07 MB

LetsEncrypt companion container for nginx-proxy

License: MIT License

Shell 99.48% Dockerfile 0.52%

acme-companion's People

Contributors

almereyda avatar arteeh avatar bgarret avatar buchdag avatar dependabot[bot] avatar emmetog avatar eralumin avatar greek64 avatar jrcs avatar maltet avatar matthijskok avatar michaelsmithson avatar mickaelperrin avatar mrskensington avatar oscarkolsrud avatar panteparak avatar pini-gh avatar prodrigestivill avatar rathko avatar reldeis avatar remogloor avatar rodrigotomees avatar ryneeverett avatar silverfire avatar spiral-dev avatar teddybear06 avatar thmhoag avatar thomseddon avatar treen0de avatar xiamaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

acme-companion's Issues

Trying to Connect Collabora/code to this container

When I publish a port besides 80 and 443 in this container, it doesn't make any attempt to proxy that new port. I checked the file created and it only made rules for port 80 and 443 In my case, I tried to publish port 9980 for a Collabora/Code container. The certificate creation appears to work correctly but the reverse proxy only sets itself up on port 80/443.

Support multiple LETSENCRYPT_HOSTs per container

Hi,

I just found this repo and your nginx-proxy repo (thank you a lot for sharing your improvements) and I was wondering if it would somehow be possible to define multiple LETSENCRYPT_HOSTs per container? Because with your fork of nginx-proxy, I can map different ports the container exposes to different (sub)domains, but I would still need SSL.

Kind regards

Deploy a Second Setup on a Different LAN IP

Bug description

I have a server with multiple IPs setup manually. I deployed one group of containers on 1.2.3.4 and it works. I used the same NGINX and LetsEncrypte contianer for 1.2.3.5 and it doesn't deploy correctly. The proxy container crashes over and over again. I suspect it is related to something going on in the Letsencrypt container. The first time I deployed on 1.2.3.5, it actually crashed by proxy container on 1.2.3.4. I had to delete everything deployed on 1.2.3.5 to fix it. The second time, it didn't affect it but it the proxy contianer on 1.2.3.5 still crashes. I noticed on my first deploy that it somehow activated the letsencrypt container on 1.2.3.4 . Any idea why I can't setup a second group of containers on a different LAN IP?

Containers logs

Logs for proxy container:

WARNING: /etc/nginx/dhparam/dhparam.pem was not found. A pre-generated dhparam.pem will be used for now while a new one
is being generated in the background. Once the new dhparam.pem is in place, nginx will be reloaded.
Generating a RSA private key
...........................................................++++
.................................................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:18 Generated '/etc/nginx/conf.d/default.conf' from 9 containers
2021/06/25 15:54:18 Generated '/etc/nginx/nginx-stream.conf' from 9 containers
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:18 [emerg] 41#41: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
......................................................................++++
....++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:20 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:20 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:20 [emerg] 73#73: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx.1 | nginx: [emerg] cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
.................................................................................................................................++++
................................................................................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:23 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:23 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:23 [emerg] 38#38: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
.........................................................................................................................++++
.....................................................................................................................................................................................................................................................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:27 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:27 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:27 [emerg] 39#39: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
.........................++++
..................................................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:29 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:29 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:29 [emerg] 37#37: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
.............................................++++
...........++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:32 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:32 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:32 [emerg] 39#39: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
..++++
...................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:36 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:36 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:36 [emerg] 39#39: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
..............++++
...................................................................................................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:44 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:44 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:44 [emerg] 38#38: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
..........................................................................................................................................................................++++
..............................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:54:59 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:59 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:54:59 [emerg] 39#39: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
.................................................++++
......++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:55:26 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:55:26 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:55:26 [emerg] 38#38: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
......................................................................................................................................................................................................................................................................................................++++
.........................................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:56:20 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:56:20 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:56:20 [emerg] 38#38: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1
Generating a RSA private key
............................................................................................++++
.....................................................................................................++++
writing new private key to '/etc/nginx/certs/default.key.new'
req: Can't open "/etc/nginx/certs/default.key.new" for writing, Read-only file system
Info: a default key and certificate have been created at /etc/nginx/certs/default.key and /etc/nginx/certs/default.crt.
Info: initial docker-gen run
2021/06/25 15:57:22 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:57:22 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
forego | starting dockergen.1 on port 5000
forego | starting nginx.1 on port 5100
nginx.1 | 2021/06/25 15:57:22 [emerg] 39#39: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
forego | starting nginx.1 on port 5200
forego | sending SIGTERM to dockergen.1
forego | sending SIGTERM to nginx.1

Logs for letsencrypt:

Info: Creating Diffie-Hellman group in the background.
A pre-generated Diffie-Hellman group will be used for now while the new one is being created.
Generating DH parameters, 2048 bit long safe prime, generator 2
Reloading nginx proxy (50502d4a4f78d291776e69507b6cc7da55e6d0cc8338fc4c35afbbbd24db4892)...
2021/06/25 15:54:20 Generated '/etc/nginx/conf.d/default.conf' from 10 containers
2021/06/25 15:54:20 Contents of /etc/nginx/nginx-stream.conf did not change. Skipping notification ''
2021/06/25 15:54:20 Contents of /etc/nginx/conf.d/default.conf did not change. Skipping notification ''
2021/06/25 15:54:20 [emerg] 56#56: cannot load certificate "/etc/nginx/certs/default.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/default.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2021/06/25 15:54:20 Generated '/app/letsencrypt_service_data' from 10 containers
2021/06/25 15:54:20 Running '/app/signal_le_service'
2021/06/25 15:54:20 Watching docker events
2021/06/25 15:54:20 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 15:54:21 Received event die for container 50502d4a4f78
2021/06/25 15:54:22 Error: nginx-proxy container 50502d4a4f78d291776e69507b6cc7da55e6d0cc8338fc4c35afbbbd24db4892 isn't running.
Sleep for 3600s
2021/06/25 15:54:23 Received event start for container 50502d4a4f78
2021/06/25 15:54:24 Received event die for container 50502d4a4f78
2021/06/25 15:54:25 Received event start for container 50502d4a4f78
2021/06/25 15:54:27 Received event die for container 50502d4a4f78
2021/06/25 15:54:29 Received event start for container 50502d4a4f78
2021/06/25 15:54:29 Received event die for container 50502d4a4f78
2021/06/25 15:54:30, Error: can't exec command [ "sh", "-c", "/app/docker-entrypoint.sh /usr/local/bin/docker-gen /app/nginx.tmpl /etc/nginx/conf.d/default.conf; /usr/sbin/nginx -s reload" ] in container 50502d4a4f78d291776e69507b6cc7da55e6d0cc8338fc4c35afbbbd24db4892. Check if the container is running.
2021/06/25 15:54:30, Error: can't reload nginx-proxy.
This is going to take a long time
Info: Diffie-Hellman group creation complete, reloading nginx.
Reloading nginx proxy (50502d4a4f78d291776e69507b6cc7da55e6d0cc8338fc4c35afbbbd24db4892)...
2021/06/25 15:54:32 Received event start for container 50502d4a4f78
2021/06/25 15:54:32 Received event die for container 50502d4a4f78
2021/06/25 15:54:36 Received event start for container 50502d4a4f78
2021/06/25 15:54:36 Received event die for container 50502d4a4f78
2021/06/25 15:54:41 Debounce maxTimer fired
2021/06/25 15:54:41 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 15:54:44 Received event start for container 50502d4a4f78
2021/06/25 15:54:44 Received event die for container 50502d4a4f78
2021/06/25 15:54:49 Debounce minTimer fired
2021/06/25 15:54:49 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 15:54:58 Received event start for container 50502d4a4f78
2021/06/25 15:54:59 Received event die for container 50502d4a4f78
2021/06/25 15:55:04 Debounce minTimer fired
2021/06/25 15:55:04 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 15:55:26 Received event start for container 50502d4a4f78
2021/06/25 15:55:26 Received event die for container 50502d4a4f78
2021/06/25 15:55:31 Debounce minTimer fired
2021/06/25 15:55:31 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 15:56:19 Received event start for container 50502d4a4f78
2021/06/25 15:56:20 Received event die for container 50502d4a4f78
2021/06/25 15:56:25 Debounce minTimer fired
2021/06/25 15:56:25 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 15:57:21 Received event start for container 50502d4a4f78
2021/06/25 15:57:22 Received event die for container 50502d4a4f78
2021/06/25 15:57:27 Debounce minTimer fired
2021/06/25 15:57:27 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 15:58:23 Received event start for container 50502d4a4f78
2021/06/25 15:58:23 Received event die for container 50502d4a4f78
2021/06/25 15:58:28 Debounce minTimer fired
2021/06/25 15:58:28 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 15:59:25 Received event start for container 50502d4a4f78
2021/06/25 15:59:25 Received event die for container 50502d4a4f78
2021/06/25 15:59:30 Debounce minTimer fired
2021/06/25 15:59:30 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:00:26 Received event start for container 50502d4a4f78
2021/06/25 16:00:27 Received event die for container 50502d4a4f78
2021/06/25 16:00:32 Debounce minTimer fired
2021/06/25 16:00:32 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:01:28 Received event start for container 50502d4a4f78
2021/06/25 16:01:29 Received event die for container 50502d4a4f78
2021/06/25 16:01:34 Debounce minTimer fired
2021/06/25 16:01:34 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:02:30 Received event start for container 50502d4a4f78
2021/06/25 16:02:30 Received event die for container 50502d4a4f78
2021/06/25 16:02:35 Debounce minTimer fired
2021/06/25 16:02:35 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:03:31 Received event start for container 50502d4a4f78
2021/06/25 16:03:32 Received event die for container 50502d4a4f78
2021/06/25 16:03:37 Debounce minTimer fired
2021/06/25 16:03:37 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:04:33 Received event start for container 50502d4a4f78
2021/06/25 16:04:34 Received event die for container 50502d4a4f78
2021/06/25 16:04:39 Debounce minTimer fired
2021/06/25 16:04:39 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:05:36 Received event start for container 50502d4a4f78
2021/06/25 16:05:37 Received event die for container 50502d4a4f78
2021/06/25 16:05:42 Debounce minTimer fired
2021/06/25 16:05:42 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:06:38 Received event start for container 50502d4a4f78
2021/06/25 16:06:38 Received event die for container 50502d4a4f78
2021/06/25 16:06:43 Debounce minTimer fired
2021/06/25 16:06:43 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:07:39 Received event start for container 50502d4a4f78
2021/06/25 16:07:40 Received event die for container 50502d4a4f78
2021/06/25 16:07:45 Debounce minTimer fired
2021/06/25 16:07:45 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:08:41 Received event start for container 50502d4a4f78
2021/06/25 16:08:41 Received event die for container 50502d4a4f78
2021/06/25 16:08:46 Debounce minTimer fired
2021/06/25 16:08:46 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:09:42 Received event start for container 50502d4a4f78
2021/06/25 16:09:43 Received event die for container 50502d4a4f78
2021/06/25 16:09:48 Debounce minTimer fired
2021/06/25 16:09:48 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:10:44 Received event start for container 50502d4a4f78
2021/06/25 16:10:45 Received event die for container 50502d4a4f78
2021/06/25 16:10:50 Debounce minTimer fired
2021/06/25 16:10:50 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:11:46 Received event start for container 50502d4a4f78
2021/06/25 16:11:48 Received event die for container 50502d4a4f78
2021/06/25 16:11:53 Debounce minTimer fired
2021/06/25 16:11:53 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:12:49 Received event start for container 50502d4a4f78
2021/06/25 16:12:49 Received event die for container 50502d4a4f78
2021/06/25 16:12:54 Debounce minTimer fired
2021/06/25 16:12:54 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:13:50 Received event start for container 50502d4a4f78
2021/06/25 16:13:52 Received event die for container 50502d4a4f78
2021/06/25 16:13:57 Debounce minTimer fired
2021/06/25 16:13:57 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:14:53 Received event start for container 50502d4a4f78
2021/06/25 16:14:53 Received event die for container 50502d4a4f78
2021/06/25 16:14:58 Debounce minTimer fired
2021/06/25 16:14:58 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:15:54 Received event start for container 50502d4a4f78
2021/06/25 16:15:55 Received event die for container 50502d4a4f78
2021/06/25 16:16:00 Debounce minTimer fired
2021/06/25 16:16:00 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:16:56 Received event start for container 50502d4a4f78
2021/06/25 16:16:57 Received event die for container 50502d4a4f78
2021/06/25 16:17:02 Debounce minTimer fired
2021/06/25 16:17:02 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:17:58 Received event start for container 50502d4a4f78
2021/06/25 16:17:59 Received event die for container 50502d4a4f78
2021/06/25 16:18:04 Debounce minTimer fired
2021/06/25 16:18:04 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:19:01 Received event start for container 50502d4a4f78
2021/06/25 16:19:02 Received event die for container 50502d4a4f78
2021/06/25 16:19:07 Debounce minTimer fired
2021/06/25 16:19:07 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:20:03 Received event start for container 50502d4a4f78
2021/06/25 16:20:04 Received event die for container 50502d4a4f78
2021/06/25 16:20:09 Debounce minTimer fired
2021/06/25 16:20:09 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:21:05 Received event start for container 50502d4a4f78
2021/06/25 16:21:05 Received event die for container 50502d4a4f78
2021/06/25 16:21:10 Debounce minTimer fired
2021/06/25 16:21:10 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:22:06 Received event start for container 50502d4a4f78
2021/06/25 16:22:06 Received event die for container 50502d4a4f78
2021/06/25 16:22:11 Debounce minTimer fired
2021/06/25 16:22:11 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:23:07 Received event start for container 50502d4a4f78
2021/06/25 16:23:08 Received event die for container 50502d4a4f78
2021/06/25 16:23:13 Debounce minTimer fired
2021/06/25 16:23:13 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:24:09 Received event start for container 50502d4a4f78
2021/06/25 16:24:09 Received event die for container 50502d4a4f78
2021/06/25 16:24:14 Debounce minTimer fired
2021/06/25 16:24:14 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:25:10 Received event start for container 50502d4a4f78
2021/06/25 16:25:11 Received event die for container 50502d4a4f78
2021/06/25 16:25:16 Debounce minTimer fired
2021/06/25 16:25:16 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:26:12 Received event start for container 50502d4a4f78
2021/06/25 16:26:13 Received event die for container 50502d4a4f78
2021/06/25 16:26:18 Debounce minTimer fired
2021/06/25 16:26:18 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:27:14 Received event start for container 50502d4a4f78
2021/06/25 16:27:14 Received event die for container 50502d4a4f78
2021/06/25 16:27:19 Debounce minTimer fired
2021/06/25 16:27:19 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:28:15 Received event start for container 50502d4a4f78
2021/06/25 16:28:16 Received event die for container 50502d4a4f78
2021/06/25 16:28:21 Debounce minTimer fired
2021/06/25 16:28:21 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:29:17 Received event start for container 50502d4a4f78
2021/06/25 16:29:17 Received event die for container 50502d4a4f78
2021/06/25 16:29:22 Debounce minTimer fired
2021/06/25 16:29:22 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:30:18 Received event start for container 50502d4a4f78
2021/06/25 16:30:19 Received event die for container 50502d4a4f78
2021/06/25 16:30:24 Debounce minTimer fired
2021/06/25 16:30:24 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:31:20 Received event start for container 50502d4a4f78
2021/06/25 16:31:20 Received event die for container 50502d4a4f78
2021/06/25 16:31:25 Debounce minTimer fired
2021/06/25 16:31:25 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:32:21 Received event start for container 50502d4a4f78
2021/06/25 16:32:21 Received event die for container 50502d4a4f78
2021/06/25 16:32:26 Debounce minTimer fired
2021/06/25 16:32:26 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:33:22 Received event start for container 50502d4a4f78
2021/06/25 16:33:23 Received event die for container 50502d4a4f78
2021/06/25 16:33:28 Debounce minTimer fired
2021/06/25 16:33:28 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:34:24 Received event start for container 50502d4a4f78
2021/06/25 16:34:25 Received event die for container 50502d4a4f78
2021/06/25 16:34:30 Debounce minTimer fired
2021/06/25 16:34:30 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:35:26 Received event start for container 50502d4a4f78
2021/06/25 16:35:27 Received event die for container 50502d4a4f78
2021/06/25 16:35:32 Debounce minTimer fired
2021/06/25 16:35:32 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:36:28 Received event start for container 50502d4a4f78
2021/06/25 16:36:29 Received event die for container 50502d4a4f78
2021/06/25 16:36:34 Debounce minTimer fired
2021/06/25 16:36:34 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:37:30 Received event start for container 50502d4a4f78
2021/06/25 16:37:31 Received event die for container 50502d4a4f78
2021/06/25 16:37:36 Debounce minTimer fired
2021/06/25 16:37:36 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:38:32 Received event start for container 50502d4a4f78
2021/06/25 16:38:32 Received event die for container 50502d4a4f78
2021/06/25 16:38:37 Debounce minTimer fired
2021/06/25 16:38:37 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:39:33 Received event start for container 50502d4a4f78
2021/06/25 16:39:34 Received event die for container 50502d4a4f78
2021/06/25 16:39:39 Debounce minTimer fired
2021/06/25 16:39:39 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:40:35 Received event start for container 50502d4a4f78
2021/06/25 16:40:35 Received event die for container 50502d4a4f78
2021/06/25 16:40:40 Debounce minTimer fired
2021/06/25 16:40:41 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:41:36 Received event start for container 50502d4a4f78
2021/06/25 16:41:38 Received event die for container 50502d4a4f78
2021/06/25 16:41:43 Debounce minTimer fired
2021/06/25 16:41:43 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:42:39 Received event start for container 50502d4a4f78
2021/06/25 16:42:40 Received event die for container 50502d4a4f78
2021/06/25 16:42:45 Debounce minTimer fired
2021/06/25 16:42:45 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:43:41 Received event start for container 50502d4a4f78
2021/06/25 16:43:41 Received event die for container 50502d4a4f78
2021/06/25 16:43:46 Debounce minTimer fired
2021/06/25 16:43:46 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:44:42 Received event start for container 50502d4a4f78
2021/06/25 16:44:43 Received event die for container 50502d4a4f78
2021/06/25 16:44:48 Debounce minTimer fired
2021/06/25 16:44:48 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:45:44 Received event start for container 50502d4a4f78
2021/06/25 16:45:45 Received event die for container 50502d4a4f78
2021/06/25 16:45:50 Debounce minTimer fired
2021/06/25 16:45:50 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:46:46 Received event start for container 50502d4a4f78
2021/06/25 16:46:48 Received event die for container 50502d4a4f78
2021/06/25 16:46:53 Debounce minTimer fired
2021/06/25 16:46:53 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:47:14 Received signal: terminated
2021/06/25 16:47:14 Received signal: terminated
Info: Custom Diffie-Hellman group found, generation skipped.
Reloading nginx proxy (50502d4a4f78d291776e69507b6cc7da55e6d0cc8338fc4c35afbbbd24db4892)...
2021/06/25 16:47:21, Error: can't exec command [ "sh", "-c", "/app/docker-entrypoint.sh /usr/local/bin/docker-gen /app/nginx.tmpl /etc/nginx/conf.d/default.conf; /usr/sbin/nginx -s reload" ] in container 50502d4a4f78d291776e69507b6cc7da55e6d0cc8338fc4c35afbbbd24db4892. Check if the container is running.
2021/06/25 16:47:21, Error: can't reload nginx-proxy.
2021/06/25 16:47:21 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:47:21 Watching docker events
2021/06/25 16:47:21 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:47:21 Error: nginx-proxy container 50502d4a4f78d291776e69507b6cc7da55e6d0cc8338fc4c35afbbbd24db4892 isn't running.
Sleep for 3600s
2021/06/25 16:47:48 Received event start for container 50502d4a4f78
2021/06/25 16:47:49 Received event die for container 50502d4a4f78
2021/06/25 16:47:54 Debounce minTimer fired
2021/06/25 16:47:54 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:48:50 Received event start for container 50502d4a4f78
2021/06/25 16:48:51 Received event die for container 50502d4a4f78
2021/06/25 16:48:56 Debounce minTimer fired
2021/06/25 16:48:56 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:49:52 Received event start for container 50502d4a4f78
2021/06/25 16:49:53 Received event die for container 50502d4a4f78
2021/06/25 16:49:58 Debounce minTimer fired
2021/06/25 16:49:58 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:50:53 Received event start for container 50502d4a4f78
2021/06/25 16:50:54 Received event die for container 50502d4a4f78
2021/06/25 16:50:59 Debounce minTimer fired
2021/06/25 16:50:59 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:51:55 Received event start for container 50502d4a4f78
2021/06/25 16:51:56 Received event die for container 50502d4a4f78
2021/06/25 16:52:01 Debounce minTimer fired
2021/06/25 16:52:01 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:52:57 Received event start for container 50502d4a4f78
2021/06/25 16:52:58 Received event die for container 50502d4a4f78
2021/06/25 16:53:03 Debounce minTimer fired
2021/06/25 16:53:03 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:53:59 Received event start for container 50502d4a4f78
2021/06/25 16:54:00 Received event die for container 50502d4a4f78
2021/06/25 16:54:05 Debounce minTimer fired
2021/06/25 16:54:05 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
2021/06/25 16:55:01 Received event start for container 50502d4a4f78
2021/06/25 16:55:01 Received event die for container 50502d4a4f78
2021/06/25 16:55:06 Debounce minTimer fired
2021/06/25 16:55:06 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'

Docker host

  • OS: CentOS 7
  • Docker version:
    Engine:
    Version: 20.10.6
    API version: 1.41 (minimum version 1.12)
    Go version: go1.13.15
    Git commit: 8728dd2
    Built: Fri Apr 9 22:43:57 2021
    OS/Arch: linux/amd64
    Experimental: false
    containerd:
    Version: 1.4.4
    GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
    runc:
    Version: 1.0.0-rc93
    GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
    docker-init:
    Version: 0.19.0
    GitCommit: de40ad0

Docker Compose:

version: '3.7'

services:

proxy:
image: pinidh/nginx-proxy:latest
labels:
- homeassist-proxy.nginx-proxy=true
container_name: homeassist-proxy
networks:
- network1
- network2
ports:
- 1.2.3.5:80:80
- 1.2.3.5:443:8123
volumes:
- homeassist_dhparam:/etc/nginx/dhparam
- homeassist_conf.d:/etc/nginx/conf.d:rw
- homeassist_vhost.d:/etc/nginx/vhost.d:rw
- homeassist_html:/usr/share/nginx/html:rw
- homeassist_certs:/etc/nginx/certs:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: unless-stopped

letsencrypt:
image: pinidh/acme-companion:latest
container_name: homeassist-letsencrypt
depends_on:
- proxy
networks:
- network2
volumes:
- homeassist_acme:/etc/acme.sh
- homeassist_certs:/etc/nginx/certs:rw
- homeassist_vhost.d:/etc/nginx/vhost.d:rw
- homeassist_html:/usr/share/nginx/html:rw
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- NGINX_PROXY_CONTAINER_LABEL=homeassist-proxy.nginx-proxy
- NETWORK_ACCESS=internal
restart: unless-stopped

homeassistant:
container_name: homeassist-app
image: "ghcr.io/home-assistant/home-assistant:stable"
networks:
- network1
depends_on:
- letsencrypt
- proxy
volumes:
- homeassist:/config
- /etc/localtime:/etc/localtime:ro
environment:
- VIRTUAL_HOST=website
- LETSENCRYPT_HOST=website
- LETSENCRYPT_DNS_MODE=dns_duckdns
- LETSENCRYPT_DNS_MODE_SETTINGS=export DuckDNS_Token=token
- LETSENCRYPT_EMAIL=email
- NETWORK_ACCESS=internal
- LETSENCRYPT_TEST=true
- DEBUG=1
restart: unless-stopped

volumes:
homeassist:
homeassist_conf.d:
homeassist_vhost.d:
homeassist_html:
homeassist_certs:
homeassist_acme:
homeassist_dhparam:

networks:
network1:
network2:

Error using the dns_nsupdate

I set the the dns mode to dns_nsupdate but and get all the env variable but when the container is started it got error:

[Wed Oct 13 13:31:00 UTC 2021] Adding txt value: Eh9iEDbc--mL80p5IaSt32LVLKUcqusjB73E8hOclbg for domain: _acme-challenge.xxxxxx.com [Wed Oct 13 13:31:01 UTC 2021] adding _acme-challenge.xxxxx.com. 60 in txt "Eh9iEDbc--mL80p5IaSt32LVLKUcqusjB73E8hOclbg" /app/dnsapi/dns_nsupdate.sh: line 35: nsupdate: command not found [Wed Oct 13 13:31:01 UTC 2021] error updating domain [Wed Oct 13 13:31:01 UTC 2021] Error add txt for domain:_acme-challenge.xxxxxx.com [Wed Oct 13 13:31:01 UTC 2021] Please check log file for more details: /dev/null

it looks like the container has to be build also with the nsupdate package, can you help with this

nginx default configured IP different from actual container IP

I restarted my docker host and how when i type the a domain am getting the wrong container, doing docker inspect on the container and comparing the nginx default configuration i see that its not ping to the same IP, is it possible to make the nginx.tmpl use the container name instead of the IP

Could you provide an example docker-compose.yaml?

Hello,

Thanks for sharing your repo with us!
Now I want to use your image instead of nginx-proxy/docker-letsencrypt-nginx-proxy-companion,
but I don't know how to use it.

Could you provide an example docker-compose.yaml? I want to use dns_cf mode of acme.sh.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.