No description
| .env.sample | ||
| .gitignore | ||
| Caddyfile | ||
| compose.override.yml.sample | ||
| compose.yml | ||
| README.md | ||
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