Initial upload
This commit is contained in:
commit
83ba093c6a
6 changed files with 156 additions and 0 deletions
31
caddy/Caddyfile
Normal file
31
caddy/Caddyfile
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
email {$EMAIL}
|
||||
acme_dns porkbun {
|
||||
api_key {$PORKBUN_API_KEY}
|
||||
api_secret_key {$PORKBUN_SECRET_KEY}
|
||||
}
|
||||
dynamic_dns {
|
||||
provider porkbun {
|
||||
api_key {$PORKBUN_API_KEY}
|
||||
api_secret_key {$PORKBUN_SECRET_KEY}
|
||||
}
|
||||
|
||||
domains {
|
||||
dawsonst.ca
|
||||
|
||||
# Update the root domain (example.com)
|
||||
# dawsonst.ca @
|
||||
|
||||
# Update a subdomain (sub.example.com)
|
||||
# example.com sub
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dawsonst.ca {
|
||||
reverse_proxy immich_server:2283
|
||||
|
||||
# handle {
|
||||
# respond "Hello dawsonst.ca 33333"
|
||||
# }
|
||||
}
|
||||
9
caddy/Dockerfile
Normal file
9
caddy/Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FROM caddy:2.10.0-builder AS builder
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddy-dns/porkbun \
|
||||
--with github.com/mholt/caddy-dynamicdns
|
||||
|
||||
FROM caddy:2.10.0
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
25
caddy/docker-compose.yaml
Normal file
25
caddy/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
services:
|
||||
caddy:
|
||||
image: caddy-porkbun
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
#environment:
|
||||
# - EMAIL=$EMAIL
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- caddy-network
|
||||
|
||||
networks:
|
||||
caddy-network:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
Loading…
Add table
Add a link
Reference in a new issue