mirror of
https://github.com/sassanix/Warracker.git
synced 2026-02-16 11:41:38 -06:00
Refer to changelogs for more details. - Replaced single warranty period field with separate Year/Month/Day inputs - Added support for uploading ZIP/RAR documents to warranties - Made JWT secret and upload size limits configurable via environment variables - Fixed backend indentation error, SQL migration bug, and smtplib re-import - Cleaned up obsolete frontend settings files
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
services:
|
|
warracker:
|
|
image: ghcr.io/sassanix/warracker/main:latest
|
|
ports:
|
|
- "8005:80"
|
|
volumes:
|
|
- warracker_uploads:/data/uploads
|
|
environment:
|
|
- DB_HOST=warrackerdb
|
|
- DB_NAME=warranty_db
|
|
- DB_USER=warranty_user
|
|
- DB_PASSWORD=${DB_PASSWORD:-warranty_password}
|
|
- SMTP_HOST=smtp.email.com
|
|
- SMTP_PORT=465
|
|
- SMTP_USERNAME=youremail@email.com
|
|
- SMTP_PASSWORD=password
|
|
- SECRET_KEY=${APP_SECRET_KEY:-your_strong_default_secret_key_here}
|
|
- MAX_UPLOAD_MB=32 # Example: Set max upload size to 32MB
|
|
- NGINX_MAX_BODY_SIZE_VALUE=32M # For Nginx, ensure this matches MAX_UPLOAD_MB in concept (e.g., 32M)
|
|
# - FLASK_DEBUG=0
|
|
depends_on:
|
|
warrackerdb:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
warrackerdb:
|
|
image: postgres:15-alpine
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=warranty_db
|
|
- POSTGRES_USER=warranty_user
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD:-warranty_password}
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
postgres_data:
|
|
warracker_uploads: |