No description
Find a file
2026-01-17 16:25:11 +01:00
.env.sample Update .env.sample 2025-11-01 22:42:44 +01:00
.gitignore added an override to return the compose to the ideal state 2026-01-17 15:49:29 +01:00
Caddyfile added support for proxy protocol via iptables and iptables6 and cemented version 2025-11-18 15:12:26 +01:00
compose.override.yml.sample added networks 2026-01-17 16:25:11 +01:00
compose.yml added networks 2026-01-17 16:25:11 +01:00
README.md added networks 2026-01-17 16:25:11 +01:00

Caddy deployment

Quick setup:

git pull https://git.derg.cz/ulysia/caddy-deployment.git

cd caddy-deployment

cp .env.sample .env

cp compose.override.yml.sample compose.override.yml

After execute docker compose up -d to get it up and running. Any sites that you want to add should go into ./sites as filename.caddy and will be automatically loaded by the Caddyfile. Note: Only the .caddy extension is mandatory, the name is for the user.

For overrides, compose.override.yml has been provided as a sample file. I suggest to put any port overrides, network_mode overrides and volume overrides in here. docker compose up -d will automatically merge the main compose and the override file.

Attaching other composes to the caddy network

Each container you want to put onto the caddy network should have caddy in its networks array and caddy defined as external at the bottom of the compose.

---
services
  container:
    networks:
      - caddy

networks:
  caddy:
    external: true