Skip to content

jinndi/caddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caddy

Caddy docker image

Quick domain reverse proxy with auto-renewing SSL

Release Code size in bytes License Actions Workflow Status Visitor

🧩 Differences from the official image

  • Setting up a reverse proxy using environment variables
  • Supports only two architectures: linux/amd64 and linux/arm64

📋 Requirements

  • Curl and Docker installed
  • You need to have a domain name

🐳 Installation

1. Install Docker

If you haven't installed Docker yet, install it by running

curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $(whoami)

2. Download docker compose file in curren dirrectory

curl -O https://raw.githubusercontent.com/jinndi/caddy/main/compose.yml

3. Fill in the environment variables using any convenient editor, for example nano

nano compose.yml

4. Setup Firewall

If you are using a firewall, you need to open 80 and 443 ports in compose.yml

5. Run compose.yml

From the same directory where you uploaded and configured compose.yml

docker compose up -d

Stop: docker compose down, Update: docker compose pull, Logs: docker compose logs

⚙️ Options

Env Default Description
TZ - Timezone. Useful for accurate logs and scheduling. Example: Europe/Moscow
DOMAIN - Required. Domain linked to your server's IP.
EMAIL - Required. Your email adress, used when creating an ACME account with your CA.
PROXY - Addresses for the reverse proxy. You can add multiple values separated by commas. Each value must follow the format <domain_or_ip>:<port>/<prefix> or <domain_or_ip>/<prefix>. The prefix will be passed to the proxy backend itself.
PROXY_STRIP_PREFIX - Same as PROXY, except the prefix will not be passed to the proxy backend.
LOG_LEVEL info Log Level. Possible values: debug, info, warn, error, and very rarely, panic, fatal

About

Quick domain reverse proxy with auto-renewing SSL

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors