Sign inSign up

atomgraph/letsencrypt-nginx-unprivileged

By atomgraph

•Updated almost 5 years ago

Unprivileged nginx Docker image which waits for the upstream server with LetsEncrypt support

Image
0

2.9K

atomgraph/letsencrypt-nginx-unprivileged repository overview

⁠nginx

Unprivileged nginx Docker image with awscliv2⁠ and python3-certbot-dns-route53⁠ installed.

⁠Usage

⁠Server certificate

If $GENERATE_SERVER_CERT=true and $SERVER_NAME is set (to the hostname of the server, e.g. localhost), a self-signed server certificate and private key will be generated under $SERVER_CERT_FILE (by default /etc/nginx/ssl/server.crt) and $SERVER_KEY_FILE (by default /etc/nginx/ssl/server.key), respectively.

⁠Upstream sever

If $UPSTREAM_SERVER is supplied, then the entrypoint script will ping that host for a $TIMEOUT number of seconds (the default is 10).

If the host responds during that period, the entrypoint command is executed. Otherwise the script exits.

⁠Example

Using docker-compose.yml:

version: "2.3"
services:
  nginx:
    image: atomgraph/nginx
    environment:
      - GENERATE_SERVER_CERT=true
      - SERVER_NAME=localhost
      - UPSTREAM_SERVER=tomcat
    command: nginx -g 'daemon off;'
    volumes:
      - ./certs:/etc/nginx/ssl

Tag summary

Content type

Image

Digest

Size

228.2 MB

Last updated

almost 5 years ago

docker pull atomgraph/letsencrypt-nginx-unprivileged