Skip to content

Commit

Permalink
Update settings.py to reflect latest docker changes. Change default i…
Browse files Browse the repository at this point in the history
…mage in docker-compose_swarm.yml
  • Loading branch information
antonkap committed Oct 28, 2024
1 parent cfad1e3 commit c680f02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose_swarm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- POSTGRES_DB=mobsf
- POSTGRES_HOST=postgres
- MOBSF_API_KEY_FILE=/run/secrets/mobsf_api_key
image: mobsf:${MOBSF_IMAGE_VERSION:-v4.0.7}
image: ${MOBSF_IMAGE:-opensecurity/mobile-security-framework-mobsf:latest}
volumes:
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF
ports:
Expand Down
3 changes: 2 additions & 1 deletion mobsf/MobSF/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def get_secret_from_file_or_env(env_secret_key):
# Database
# https://docs.djangoproject.com/en/dev/ref/settings/#databases
if (os.environ.get('POSTGRES_USER')
and os.environ.get('POSTGRES_PASSWORD')
and (os.environ.get('POSTGRES_PASSWORD')
or os.environ.get('POSTGRES_PASSWORD_FILE'))
and os.environ.get('POSTGRES_HOST')):
# Postgres support
default = {
Expand Down

0 comments on commit c680f02

Please sign in to comment.