Sign inSign up

cloubit/caddy-infomaniak

By cloubit

Updated 7 months ago

Caddy Server with integrated DNS-API for the DNS provider Infomaniak.

Image
Networking
Security
Web servers
0

898

cloubit/caddy-infomaniak repository overview

Caddy Reverse Proxy Docker Image for Infomaniak DNS

The Caddy reverse proxy⁠ is an open source high-performance reverse proxy server with automatic and default HTTPS.

The server provides automatic HTTPS using TLS certificates for all websites and ensures that they are renewed. ⁠DNS challenge is required for HTTPS to work with TLS certificates in a private network. The container contains DNS challenge with the specific addon for the provider Infomaniak.

The image consists of the following components

  • caddy server and
  • infomaniak DNS addon

Prerequisites:

  • Docker server
  • create a Docker network like caddy-proxywith docker network create caddy-proxy
  • Registered domain with Infomaniak
  • spezific application entry in the registered domain
  • API token with the following permissions: Domain:read, Domain:write, DNS:read, DNS:write

Configure the Caddy-Infomaniak Docker Container

  • Create a folder named caddy and two files inside it named compose.yaml and Caddyfile.
  • Add the following content to the respective files:
  • compose.yaml
    services:
      caddy:
        image: cloubit/caddy-infomaniak:latest
        restart: unless-stopped
        ports:
         - 80:80
         - 443:443
        container_name: caddy-infomaniak
        volumes:
          - ./Caddyfile:/etc/caddy/Caddyfile
          - caddy_data:/data
          - caddy_config:/config
        networks:
          - caddy-proxy
    networks:
      caddy-proxy:
        external: true
    
    volumes:
     caddy_data:
     caddy_config:
    
  • Caddyfile (Change the parameters like )
    {
        acme_dns infomaniak <INSERT_YOUR_API_TOKEN_HERE>
    }
    
    # Domain forwarding (Just an example)
    <applicationname.domain.tld> {
        reverse_proxy <linked_dockercontainer_in_the_same_dockernetwork>:<port>
    }
    

Run the Container

  • Start your stack like docker compose up
  • Check the Logs and Applications

More Information:

Tag summary

Content type

Image

Digest

sha256:dcc1110f2

Size

36.8 MB

Last updated

7 months ago

docker pull cloubit/caddy-infomaniak