forked from MobSF/Mobile-Security-Framework-MobSF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose_swarm.yml
More file actions
57 lines (53 loc) · 1.47 KB
/
docker-compose_swarm.yml
File metadata and controls
57 lines (53 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
postgres:
image: "postgres:${POSTGRES_VERSION:-17.0-bookworm}"
restart: always
volumes:
- $HOME/MobSF/postgresql_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD_FILE=/run/secrets/mobsfDB_password
- POSTGRES_DB=mobsf
networks:
- mobsf_network
secrets:
- mobsfDB_password
mobsf:
image: ${MOBSF_IMAGE:-opensecurity/mobile-security-framework-mobsf:latest}
restart: always
ports:
- "8000:8000"
- "1337:1337"
volumes:
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD_FILE=/run/secrets/mobsfDB_password
- POSTGRES_DB=mobsf
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- MOBSF_API_KEY_FILE=/run/secrets/mobsf_api_key
#Proxy options - use it if you behind proxy
#- MOBSF_UPSTREAM_PROXY_ENABLED=True
#- MOBSF_UPSTREAM_PROXY_SSL_VERIFY=True
#- MOBSF_UPSTREAM_PROXY_TYPE=http
#- MOBSF_UPSTREAM_PROXY_IP=host.docker.internal
#- MOBSF_UPSTREAM_PROXY_PORT=8080
healthcheck:
test: curl -f http://localhost:8000/login/ || exit 1
depends_on:
- postgres
networks:
- mobsf_network
extra_hosts:
- "host.docker.internal:host-gateway"
secrets:
- mobsfDB_password
- mobsf_api_key
networks:
mobsf_network:
secrets:
mobsfDB_password:
external: true
mobsf_api_key:
external: true