Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .envs/.local/.django
Original file line number Diff line number Diff line change
Expand Up @@ -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=<your key>

# Django Superuser Info

Expand Down
6 changes: 3 additions & 3 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions config/settings/local.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import REST_FRAMEWORK
from .base import * # noqa
from .base import env

# GENERAL
Expand Down Expand Up @@ -62,4 +62,4 @@

# Your stuff...
# ------------------------------------------------------------------------------
REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"]['user'] = '100/minute'
REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"]['user'] = '100/minute' # noqa F405
17 changes: 8 additions & 9 deletions local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

Expand All @@ -18,7 +18,7 @@ services:
condition: service_started
redis:
condition: service_started
minio:
rustfs:
condition: service_started
mobsf:
condition: service_started
Expand All @@ -45,7 +45,7 @@ services:
condition: service_started
redis:
condition: service_started
minio:
rustfs:
condition: service_started
elasticsearch:
condition: service_healthy
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
17 changes: 8 additions & 9 deletions production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

Expand All @@ -20,7 +20,7 @@ services:
condition: service_started
redis:
condition: service_started
minio:
rustfs:
condition: service_started
mobsf:
condition: service_started
Expand All @@ -40,7 +40,7 @@ services:
condition: service_started
postgres:
condition: service_started
minio:
rustfs:
condition: service_started
elasticsearch:
condition: service_healthy
Expand Down Expand Up @@ -102,23 +102,22 @@ 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"
- "MOBSF_API_KEY=515d3578262a2539cd13b5b9946fe17e350c321b91faeb1ee56095430242a4a9"
- "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
Expand Down
Loading