caddy-docker-proxy
Jonathan Dahan 2 years ago
parent 656e59ee0a
commit 11ca7fa3c3

@ -1 +1 @@
DOMAIN=scorpius
DOMAIN=localhost

@ -13,6 +13,8 @@ services:
- ../data/caddy/site:/site
- ../data/caddy/data:/data
- caddy_config:/config
environment:
- DOMAIN
volumes:
caddy_config:

@ -0,0 +1,9 @@
{$DOMAIN} {
file_server {
root /site
}
}
web.{$DOMAIN} {
reverse_proxy services-web-1:4431
}

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

@ -1,12 +1,11 @@
web.localhost
:4431
root * /site
@get method GET
@notget not method GET
route {
basicauth
file_server @get browse
route @notget {
webdav
}
file_server browse

Loading…
Cancel
Save