custom caddy container for acme dns
This commit is contained in:
parent
4388cd8382
commit
df5a43529a
6 changed files with 59 additions and 0 deletions
5
quadlets/build/README.md
Normal file
5
quadlets/build/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Building customized containers
|
||||
|
||||
- Create a directory named after the container
|
||||
- Add $container.build
|
||||
- Add custom Containerfile
|
7
quadlets/build/caddy/Caddyfile
Normal file
7
quadlets/build/caddy/Caddyfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
acme_dns $provider $api_key
|
||||
}
|
||||
|
||||
qb.$domain.$tld {
|
||||
reverse_proxy localhost:8080
|
||||
}
|
8
quadlets/build/caddy/Containerfile
Normal file
8
quadlets/build/caddy/Containerfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
FROM docker.io/caddy:$version-builder AS builder
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddy-dns/$module
|
||||
|
||||
FROM docker.io/caddy:$version
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
11
quadlets/build/caddy/README.md
Normal file
11
quadlets/build/caddy/README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# podman 5.2.5
|
||||
|
||||
```bash
|
||||
dnf -y install btrfs-progs-devel passt
|
||||
curl -fsSL \
|
||||
-o podman-5.2.5.tar.gz \
|
||||
https://github.com/containers/podman/archive/refs/tags/v5.2.5.tar.gz
|
||||
tar xzf podman-5.2.5.tar.gz
|
||||
cd podman-5.2.5
|
||||
make BUILDTAGS="selinux seccomp" PREFIX=/usr
|
||||
```
|
4
quadlets/build/caddy/caddy.build
Normal file
4
quadlets/build/caddy/caddy.build
Normal file
|
@ -0,0 +1,4 @@
|
|||
[Build]
|
||||
ImageTag=localhost/caddy-njalla
|
||||
SetWorkingDirectory=unit
|
||||
|
24
quadlets/build/caddy/caddy.container
Normal file
24
quadlets/build/caddy/caddy.container
Normal file
|
@ -0,0 +1,24 @@
|
|||
[Unit]
|
||||
Description=Reverse proxy
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
[Container]
|
||||
Image=caddy.build
|
||||
ContainerName=caddy
|
||||
HostName=caddy
|
||||
|
||||
PublishPort=80:80
|
||||
PublishPort=443:443
|
||||
PublishPort=443:443/udp
|
||||
|
||||
Volume=/volumes/caddy/config:/config
|
||||
Volume=/volumes/caddy/data:/data
|
||||
|
||||
Volume=./Caddyfile:/etc/caddy/Caddyfile
|
||||
|
Loading…
Add table
Reference in a new issue