Sign inSign up

glopix/caddy-docker-proxy-with-acmedns

By glopix

•Updated 7 days ago

caddy-docker-proxy + acmedns Module

Image
0

7.0K

glopix/caddy-docker-proxy-with-acmedns repository overview

⁠caddy-docker-proxy-with-acmedns

lucaslorentz/caddy-docker-proxy⁠ with the Caddy DNS Module for acmedns⁠

⁠Github Repository / Dockerfile

https://github.com/Glopix/caddy-docker-proxy-with-acmedns⁠

⁠Usage

For further information and more detailed instructions on the use of this container/caddy-module, please refer to https://github.com/lucaslorentz/caddy-docker-proxy⁠ and https://github.com/caddy-dns/acmedns⁠ on how to use the DNS module.

⁠Docker Compose Example (excluding backend/reverse proxy target)

docker-compose.yml

version: "3.8"

services:
  caddy:
    image: glopix/caddy-docker-proxy-with-acmedns
    restart: unless-stopped
    ports:
      - 80:80
      - 443:443
    environment:
      - CADDY_INGRESS_NETWORKS=caddy
# if you want an additional Caddyfile:
# (e.g. if you dont want to configure the ACME-DNS module via labels)
#      - CADDY_DOCKER_CADDYFILE_PATH=/data/Caddyfile

    networks:
      - caddy
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - caddy_data:/data
# if you want an additional  Caddyfile:      
#      - ./Caddyfile:/data/Caddyfile

networks:
  caddy:
    name: caddy
    driver: bridge

# persistant storage for certs etc.
volumes:
  caddy_data:

Caddyfile (e.g. if you dont want to configure the ACME-DNS module via labels)

{
        email [email protected]
#       acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
}


*.example.com {
        tls {
                resolvers 1.1.1.1:53
                dns acmedns {
                        username xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                        password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                        subdomain xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                        server_url https://auth.acme-dns.io
                }
        }
}

Tag summary

Content type

Image

Digest

sha256:547a521d8…

Size

41.3 MB

Last updated

7 days ago

docker pull glopix/caddy-docker-proxy-with-acmedns