-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-compose QA + docker swarm support
- Loading branch information
1 parent
5c1e7ee
commit 8e57a78
Showing
12 changed files
with
217 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
sonar.sources=. | ||
sonar.exclusions=mobsf/static/**/*,mobsf/templates/**/* | ||
sonar.sourceEncoding=UTF-8 | ||
sonar.python.version=3.10, 3.11 | ||
sonar.python.version=3.10, 3.11, 3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,47 @@ | ||
services: | ||
|
||
postgres: | ||
image: "postgres:latest" | ||
image: "postgres:13" | ||
restart: always | ||
volumes: | ||
- $HOME/MobSF/postgresql_data:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=mobsf | ||
networks: | ||
- mobsf_network | ||
|
||
nginx: | ||
image: nginx:latest | ||
restart: always | ||
ports: | ||
- "5432:5432" | ||
- "80:4000" | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf:ro | ||
depends_on: | ||
- mobsf | ||
networks: | ||
- mobsf | ||
- mobsf_network | ||
|
||
mobsf: | ||
environment: | ||
image: opensecurity/mobile-security-framework-mobsf:latest | ||
restart: always | ||
volumes: | ||
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=mobsf | ||
- POSTGRES_HOST=postgres | ||
- POSTGRES_PORT=5432 | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- $HOME/MobSF/mobsf_data:/home/mobsf/.MobSF | ||
ports: | ||
- "8000:8000" | ||
networks: | ||
- mobsf | ||
healthcheck: | ||
test: curl -f http://localhost:8000/login/ || exit 1 | ||
depends_on: | ||
- postgres | ||
links: | ||
- "postgres" | ||
networks: | ||
- mobsf_network | ||
|
||
networks: | ||
mobsf: | ||
mobsf_network: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
user nginx; | ||
events { | ||
worker_connections 1000; | ||
} | ||
http { | ||
server { | ||
listen 4000; | ||
location / { | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-Port 443; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
|
||
proxy_pass http://mobsf:8000; | ||
proxy_redirect off; | ||
proxy_read_timeout 900; | ||
proxy_buffering on; | ||
} | ||
client_max_body_size 256M; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.