Complete stage 7
This commit is contained in:
parent
3e7b89bcad
commit
1f88e291a9
9 changed files with 784 additions and 26 deletions
35
docker-compose.caddy.yml
Normal file
35
docker-compose.caddy.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Caddy Reverse Proxy for Kaboot Production
|
||||
#
|
||||
# This compose file adds Caddy as a reverse proxy with automatic HTTPS.
|
||||
# Use with the main docker-compose.yml using the -f flag.
|
||||
#
|
||||
# Usage:
|
||||
# docker compose -f docker-compose.yml -f docker-compose.caddy.yml up -d
|
||||
#
|
||||
# Prerequisites:
|
||||
# 1. Create a Caddyfile in the project root (see docs/PRODUCTION.md)
|
||||
# 2. Build the frontend: npm run build
|
||||
# 3. Update your domain DNS to point to your server
|
||||
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2-alpine
|
||||
container_name: kaboot-caddy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- ./dist:/srv/frontend:ro
|
||||
- caddy-data:/data
|
||||
- caddy-config:/config
|
||||
depends_on:
|
||||
- kaboot-backend
|
||||
- authentik-server
|
||||
networks:
|
||||
- kaboot-network
|
||||
|
||||
volumes:
|
||||
caddy-data:
|
||||
caddy-config:
|
||||
Loading…
Add table
Add a link
Reference in a new issue