Files
Mobile-Security-Framework-M…/docker/docker-compose.yml
T
Ajin AbrahamandCursor a0f8a0ded1 ci/docker: supply-chain Actions updates and Postgres 18 compose layout (#2643)
* ci: bump Actions versions, pin Docker actions, add Dependabot

Keep CI supply chain current after the Docker SBOM work: update test,
publish, and CodeQL workflows, SHA-pin Docker setup/login actions, and
enable weekly GitHub Actions Dependabot updates.

Co-authored-by: Cursor <[email protected]>

* docker: use Postgres latest and PG18 data volume layout

Co-authored-by: Cursor <[email protected]>

* Bump version to 4.5.2

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
2026-08-09 18:14:05 -07:00

92 lines
2.0 KiB
YAML

services:
postgres:
image: "postgres:latest"
restart: always
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
volumes:
- $HOME/MobSF/postgresql_data:/var/lib/postgresql
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=mobsf
networks:
- mobsf_network
nginx:
image: nginx:latest
restart: always
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 256M
ports:
- "80:4000"
- "1337:4001"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- mobsf
networks:
- mobsf_network
djangoq:
image: opensecurity/mobile-security-framework-mobsf:latest
build:
context: ..
dockerfile: Dockerfile
restart: unless-stopped
command: /home/mobsf/Mobile-Security-Framework-MobSF/scripts/qcluster.sh
volumes:
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=mobsf
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
depends_on:
- postgres
networks:
- mobsf_network
mobsf:
image: opensecurity/mobile-security-framework-mobsf:latest
build:
context: ..
dockerfile: Dockerfile
restart: always
tty: true
volumes:
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=mobsf
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- MOBSF_ASYNC_ANALYSIS=1
healthcheck:
test: curl -f http://localhost:8000/login/ || exit 1
interval: 30s
timeout: 10s
retries: 5
depends_on:
- postgres
- djangoq
networks:
- mobsf_network
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
mobsf_network:
driver: bridge