diff --git a/.envs/.local/.django b/.envs/.local/.django index e68802c..fa6e8a2 100644 --- a/.envs/.local/.django +++ b/.envs/.local/.django @@ -5,10 +5,9 @@ IPYTHONDIR=/app/.ipython REDIS_URL=redis://redis:6379/0 -MINIO_ROOT_USER=KBP6WXGPS387090EZMG8 -MINIO_ROOT_PASSWORD=DRjFXylyfMqn2zilAr33xORhaYz5r9e8r37XPz3A +RUSTFS_ACCESS_KEY=KBP6WXGPS387090EZMG8 +RUSTFS_SECRET_KEY=DRjFXylyfMqn2zilAr33xORhaYz5r9e8r37XPz3A -# VT_API_KEY= # Django Superuser Info diff --git a/config/settings/base.py b/config/settings/base.py index b3cc9ba..03980cc 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -167,9 +167,9 @@ MEDIA_URL = "/media/" DEFAULT_FILE_STORAGE = "minio_storage.storage.MinioMediaStorage" -MINIO_STORAGE_ENDPOINT = 'minio:9000' -MINIO_STORAGE_ACCESS_KEY = env('MINIO_ROOT_USER') -MINIO_STORAGE_SECRET_KEY = env('MINIO_ROOT_PASSWORD') +MINIO_STORAGE_ENDPOINT = 'rustfs:9000' +MINIO_STORAGE_ACCESS_KEY = env('RUSTFS_ACCESS_KEY') +MINIO_STORAGE_SECRET_KEY = env('RUSTFS_SECRET_KEY') MINIO_STORAGE_USE_HTTPS = False MINIO_STORAGE_MEDIA_BUCKET_NAME = 'local-media' MINIO_STORAGE_AUTO_CREATE_MEDIA_BUCKET = True diff --git a/config/settings/local.py b/config/settings/local.py index f80a81d..4edf2ef 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -1,4 +1,4 @@ -from .base import REST_FRAMEWORK +from .base import * # noqa from .base import env # GENERAL @@ -62,4 +62,4 @@ # Your stuff... # ------------------------------------------------------------------------------ -REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"]['user'] = '100/minute' +REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"]['user'] = '100/minute' # noqa F405 diff --git a/local.yml b/local.yml index 691364d..30c6612 100644 --- a/local.yml +++ b/local.yml @@ -3,7 +3,7 @@ volumes: local_postgres_data: {} local_postgres_data_backups: {} local_elasticsearch_data: {} - local_minio_data: {} + local_rustfs_data: {} local_prometheus_data: {} local_grafana_data: {} @@ -18,7 +18,7 @@ services: condition: service_started redis: condition: service_started - minio: + rustfs: condition: service_started mobsf: condition: service_started @@ -45,7 +45,7 @@ services: condition: service_started redis: condition: service_started - minio: + rustfs: condition: service_started elasticsearch: condition: service_healthy @@ -97,7 +97,7 @@ services: start_period: 20s mobsf: - image: opensecurity/mobile-security-framework-mobsf:v4.4.6 + image: opensecurity/mobile-security-framework-mobsf:v4.5.2 hostname: mobsf ports: - 8181:8000 @@ -119,15 +119,14 @@ services: env_file: - ./.envs/.local/.elastic - minio: - image: minio/minio:RELEASE.2025-09-07T16-13-09Z + rustfs: + image: rustfs/rustfs:latest volumes: - - local_minio_data:/data + - local_rustfs_data:/data env_file: - ./.envs/.local/.django - command: server /data healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] + test: ["CMD", "curl", "-f", "http://localhost:9000/health/ready"] interval: 30s timeout: 20s retries: 3 diff --git a/production.yml b/production.yml index 96527dc..edc4116 100644 --- a/production.yml +++ b/production.yml @@ -5,7 +5,7 @@ volumes: production_traefik: {} production_traefik_logs: {} production_elasticsearch_data: {} - production_minio_data: {} + production_rustfs_data: {} production_prometheus_data: {} production_grafana_data: {} @@ -20,7 +20,7 @@ services: condition: service_started redis: condition: service_started - minio: + rustfs: condition: service_started mobsf: condition: service_started @@ -40,7 +40,7 @@ services: condition: service_started postgres: condition: service_started - minio: + rustfs: condition: service_started elasticsearch: condition: service_healthy @@ -102,7 +102,7 @@ services: mobsf: - image: opensecurity/mobile-security-framework-mobsf:v4.4.6 + image: opensecurity/mobile-security-framework-mobsf:v4.5.2 hostname: mobsf environment: - "MOBSF_API_ONLY=1" @@ -110,15 +110,14 @@ services: - "MOBSF_NIAP_ENABLED=1" - "MOBSF_CVSS_SCORE_ENABLED=1" - minio: - image: minio/minio:RELEASE.2025-09-07T16-13-09Z + rustfs: + image: rustfs/rustfs:latest volumes: - - production_minio_data:/data + - production_rustfs_data:/data env_file: - ./.envs/.production/.django - command: server /data healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] + test: ["CMD", "curl", "-f", "http://localhost:9000/health/ready"] interval: 30s timeout: 20s retries: 3