mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-03-03 03:47:02 +00:00
- Fix refresh token cookie Secure flag bug (was hardcoded to false) - Wire up AllowedOrigins config in CORS middleware (router, handlers, chat, SSE) - Add APP_ENV=production to Dockerfile and Dockerfile.cuda - Update all docker-compose files with APP_ENV and ALLOWED_ORIGINS examples - CORS now validates origins in production, allows all in development - Increase gocyclo threshold from 20 to 25 for complex handlers
34 lines
942 B
YAML
34 lines
942 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
scriberr:
|
|
# Build from local Dockerfile; replace with `image: ghcr.io/rishikanthc/scriberr:latest`
|
|
# if you prefer pulling a prebuilt image.
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: scriberr:local
|
|
# image: ghcr.io/rishikanthc/scriberr:v1.0.0
|
|
container_name: scriberr
|
|
ports:
|
|
- "8080:8080"
|
|
# environment:
|
|
# - HOST=0.0.0.0
|
|
# - PORT=8080
|
|
# - DATABASE_PATH=/app/data/scriberr.db
|
|
# - UPLOAD_DIR=/app/data/uploads
|
|
# - PUID=${PUID:-1000}
|
|
# - PGID=${PGID:-1000}
|
|
environment:
|
|
# Security: already set in container, but can be overridden
|
|
- APP_ENV=production
|
|
# CORS: comma-separated list of allowed origins for production
|
|
# - ALLOWED_ORIGINS=https://your-domain.com
|
|
volumes:
|
|
- ./scriberr-data:/app/data
|
|
- ./env-data:/app/whisperx-env
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
scriberr-data:
|