- Add a self-signed HTTPS Nginx entrypoint on Docker port 4443 so browser microphone APIs can run in demo mode. - Keep the existing HTTP port 4002 unchanged while exposing container port 443 and generating the demo certificate during image build. - Update CORS defaults and Compose environment for the HTTPS frontend origin. - Clarify the report editor microphone message with localhost, HTTPS, and browser trusted-origin demo options. - Document the browser HTTP microphone limitation, HTTPS demo URL, and Chrome/Edge insecure-origin workaround in README and docs.
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: tuwen_db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: surclaw
|
|
POSTGRES_USER: surclaw
|
|
POSTGRES_PASSWORD: surclaw_dev_password
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.server
|
|
container_name: tuwen_api
|
|
restart: unless-stopped
|
|
environment:
|
|
API_PORT: 3100
|
|
API_BODY_LIMIT: 100mb
|
|
CORS_ORIGIN: http://localhost:4002,https://localhost:4443,http://localhost:3001
|
|
DATABASE_URL: postgresql://surclaw:surclaw_dev_password@db:5432/surclaw?schema=public
|
|
SESSION_SECRET: change-me-in-production
|
|
SESSION_COOKIE_SECURE: "false"
|
|
FILE_STORAGE_DIR: /app/uploads
|
|
ports:
|
|
- "3002:3100"
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- uploads_data:/app/uploads
|
|
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: tuwen_web
|
|
restart: unless-stopped
|
|
ports:
|
|
- "4002:80"
|
|
- "4443:443"
|
|
depends_on:
|
|
- api
|
|
|
|
volumes:
|
|
postgres_data:
|
|
uploads_data:
|