MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 39s
- Configure structured slog logger in cmd/server/main.go via LOG_LEVEL and DEBUG env vars - Add HTTP API request logging middleware in internal/api/ with status and duration_ms - Add WebSocket join/leave, event reception, and debounced SQLite flush tracing in docroom - Document LOG_LEVEL and DEBUG settings in .env.example, compose.yaml, and docker-compose.yml
29 lines
1023 B
YAML
29 lines
1023 B
YAML
services:
|
|
mindsift:
|
|
image: git.dsit.me/sandrodach/mindsift:dev
|
|
container_name: mindsift
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PORT:-8080}:8080"
|
|
volumes:
|
|
- ./data:/data
|
|
environment:
|
|
- PORT=8080
|
|
- DATA_DIR=/data
|
|
- JWT_SECRET=${JWT_SECRET:-change_this_to_a_secure_random_key_min_32_chars}
|
|
- BASE_URL=${BASE_URL:-http://localhost:8080}
|
|
- ALLOW_REGISTRATION=${ALLOW_REGISTRATION:-false}
|
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
|
# Set LOG_LEVEL=debug or DEBUG=true for detailed request and sync logging
|
|
# - LOG_LEVEL=debug
|
|
# - DEBUG=true
|
|
# Demo mode: if true, automatically seeds demo accounts admin/admin and user/user
|
|
- MINDA_DEMO=${MINDA_DEMO:-false}
|
|
# Optional SMTP / Mail Configuration (can also be configured in Admin UI)
|
|
- SMTP_HOST=${SMTP_HOST:-}
|
|
- SMTP_PORT=${SMTP_PORT:-587}
|
|
- SMTP_USER=${SMTP_USER:-}
|
|
- SMTP_PASS=${SMTP_PASS:-}
|
|
- SMTP_FROM=${SMTP_FROM:-}
|
|
- SMTP_TLS=${SMTP_TLS:-true}
|