Add initial Caddy configuration files
This commit is contained in:
parent
066cf29099
commit
48858743b4
4 changed files with 39 additions and 0 deletions
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"cSpell.words": [
|
||||||
|
"qbittorrent",
|
||||||
|
"tmpfs"
|
||||||
|
]
|
||||||
|
}
|
||||||
0
Caddy/.env.example
Normal file
0
Caddy/.env.example
Normal file
4
Caddy/Dockerfile
Normal file
4
Caddy/Dockerfile
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM caddy:2-builder AS builder
|
||||||
|
RUN xcaddy build --with github.com/caddy-dns/cloudflare
|
||||||
|
FROM caddy:2
|
||||||
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||||
29
Caddy/compose.yaml
Normal file
29
Caddy/compose.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
services:
|
||||||
|
caddy:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
restart: unless-stopped
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
|
environment:
|
||||||
|
# Zone.Zone:Read and Zone.DNS:Edit
|
||||||
|
CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN}
|
||||||
|
ports:
|
||||||
|
- "80:80/tcp"
|
||||||
|
- "443:443/tcp"
|
||||||
|
- "443:443/udp"
|
||||||
|
volumes:
|
||||||
|
- /mnt/Docker/Data/Caddy/conf:/etc/caddy
|
||||||
|
- /mnt/Docker/Data/Caddy/data:/data
|
||||||
|
- /mnt/Docker/Data/Caddy/config:/config
|
||||||
|
|
||||||
|
- /mnt/fourteen/Data/www:/mnt/fourteen/Data/www:ro
|
||||||
|
- /mnt/fourteen/Data/DiscordEmbed:/mnt/fourteen/Data/DiscordEmbed:ro
|
||||||
|
|
||||||
|
- /var/log/caddy:/var/log/caddy
|
||||||
|
networks:
|
||||||
|
web:
|
||||||
|
external: true
|
||||||
|
name: web
|
||||||
Loading…
Add table
Add a link
Reference in a new issue