add caddy service

This commit is contained in:
Micha Albert 2024-09-12 13:16:33 -04:00
parent 5774a351e1
commit 29683d43a8
2 changed files with 27 additions and 0 deletions

12
caddy/Caddyfile Normal file
View file

@ -0,0 +1,12 @@
live.onboard.hackclub.com {
reverse_proxy localhost:8889
handle /slack/* {
reverse_proxy localhost:8000
}
handle /api/v1/github/* {
reverse_proxy localhost:8000
}
handle /auth/* {
reverse_proxy localhost:8000
}
}

View file

@ -37,6 +37,19 @@ services:
dockerfile: Dockerfile
volumes:
- ./backend/db:/usr/src/app/db
caddy:
image: docker.io/caddy:alpine
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config=
# active-stream-proxy:
# build:
# context: ./active-stream-proxy
@ -51,3 +64,5 @@ services:
volumes:
mediamtx_recordings:
tiling_frontend_build:
caddy_data:
caddy_config: