caddy-docker-proxy
Jonathan Dahan 2 years ago
parent 87e9c7ff84
commit 656e59ee0a

@ -3,15 +3,21 @@
docker-compose --env-file env.production \ docker-compose --env-file env.production \
--file services/caddy.yaml \ --file services/caddy.yaml \
--file services/zitadel.yaml \ --file services/zitadel.yaml \
up up --build
## port forwarding
echo 'net.ipv4.ip_unprivileged_port_start=80' | sudo tee -a /etc/sysctl.conf
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=80
## beta release ## beta release
- [*] caddy with landing page of this readme - [*] caddy with homepage
- [*] backup using duplicity uploaded to backblaze b2 - [*] backup using duplicity uploaded to backblaze b2
- [ ] webdav for personal home pages
- [ ] restore using duplicity downloaded from backblaze b2
- [ ] zitadel sso - [ ] zitadel sso
- [ ] bookstack wiki - [ ] wiki
- [ ] caddy webdav for personal home pages
- [ ] dendrite matrix server - [ ] dendrite matrix server
- [ ] gitea instance - [ ] gitea instance

@ -2,19 +2,17 @@ version: "3.7"
services: services:
caddy: caddy:
build: ./caddy image: caddy
restart: unless-stopped restart: unless-stopped
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
- "443:443/udp" - "443:443/udp"
volumes: volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile - ./caddy/Caddyfile:/etc/caddy/Caddyfile
- $PWD/site:/srv - ../data/caddy/site:/site
- caddy_data:/data - ../data/caddy/data:/data
- caddy_config:/config - caddy_config:/config
volumes: volumes:
caddy_data:
external: true
caddy_config: caddy_config:

@ -1,3 +0,0 @@
caddy
xcaddy
.latest_download

@ -39,4 +39,3 @@ Generally, zitadel has some cli commands that we have put in scripts in the zita
You will want to make a Caddyfile, which will get mounted by the Caddy compose file. You will want to make a Caddyfile, which will get mounted by the Caddy compose file.

@ -0,0 +1,20 @@
version: "3.7"
services:
caddy:
build:
context: ./web
dockerfile: Containerfile
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./web/Caddyfile:/etc/caddy/Caddyfile
- ../data/web/site:/site
- ../data/web/data:/data
- caddy_config:/config
volumes:
caddy_config:

@ -1,11 +1,12 @@
localhost web.localhost
root * ../../data/web root * /site
@get method GET
route { route {
rewrite /dav /dav/ basicauth
webdav /dav/* { file_server @get browse
prefix /dav webdav
}
file_server
} }

@ -1,4 +1,4 @@
FROM caddy:latest-builder AS builder FROM caddy:2.7.5-builder-alpine AS builder
RUN xcaddy build \ RUN xcaddy build \
--with github.com/mholt/caddy-webdav --with github.com/mholt/caddy-webdav
Loading…
Cancel
Save