mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
* Run service as unprivileged user * Update Dockerfile Co-authored-by: superpoussin22 <[email protected]> Co-authored-by: Ajin Abraham <[email protected]>
40 lines
777 B
YAML
40 lines
777 B
YAML
version: '3.8'
|
|
services:
|
|
postgres:
|
|
image: "postgres:latest"
|
|
restart: always
|
|
volumes:
|
|
- $HOME/MobSF/postgresql_data:/var/lib/postgresql
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=password
|
|
- POSTGRES_DB=mobsf
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- mobsf
|
|
|
|
mobsf:
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=password
|
|
- POSTGRES_DB=mobsf
|
|
- POSTGRES_HOST=postgres
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- POSTGRES=True
|
|
volumes:
|
|
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF
|
|
ports:
|
|
- "8000:8000"
|
|
networks:
|
|
- mobsf
|
|
depends_on:
|
|
- postgres
|
|
links:
|
|
- "postgres"
|
|
networks:
|
|
mobsf:
|