Skip to content

uxname/caddy-caddy

Repository files navigation

Caddy + Docker Compose

This project sets up Caddy with Docker Compose and automatic HTTPS via Let's Encrypt.

Prerequisites

  • Docker and Docker Compose

Setup

  1. Clone the repository:

    git clone https://github.com/uxname/caddy-caddy.git caddy
    cd caddy
  2. Modify the Caddyfile in ./data/Caddyfile to configure your domains and reverse proxies. (See the provided Caddyfile.example for reference.)

  3. Start the services:

    docker-compose up -d

Management Scripts

  • Validate Caddyfile:

    ./validate_caddyfile.sh
  • Format Caddyfile:

    ./format_caddyfile.sh
  • Reload Caddy:

    ./reload_caddy.sh

Stopping the Server

To stop the server:

docker-compose down

Project Structure

.
├── data/
│   ├── Caddyfile        # Your Caddy config
│   ├── caddy_data/      # Let's Encrypt data
│   └── caddy_config/    # Caddy config files
├── docker-compose.yml   # Docker Compose config
├── format_caddyfile.sh   # Format Caddyfile
├── reload_caddy.sh       # Reload Caddy
└── validate_caddyfile.sh # Validate Caddyfile

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages