mirror of
https://github.com/openappsec/openappsec.git
synced 2025-11-16 17:31:52 +03:00
Compare commits
6 Commits
1.1.30
...
fix-entry-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a72025bc94 | ||
|
|
9e79e65e25 | ||
|
|
c90862d74c | ||
|
|
b7923dfd8c | ||
|
|
ed4e20b010 | ||
|
|
14159402e2 |
@@ -15,13 +15,28 @@ var_mode=
|
|||||||
var_token=
|
var_token=
|
||||||
var_ignore=
|
var_ignore=
|
||||||
init=
|
init=
|
||||||
|
active_watchdog_pid=
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
local signal="$1"
|
||||||
|
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Signal ${signal} was received, exiting gracefully..." >&2
|
||||||
|
if [ -n "${active_watchdog_pid}" ] && ps -p ${active_watchdog_pid} > /dev/null 2>&1; then
|
||||||
|
kill -TERM ${active_watchdog_pid} 2>/dev/null || true
|
||||||
|
wait ${active_watchdog_pid} 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
echo "Cleanup completed. Exiting now." >&2
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
trap 'cleanup SIGTERM' SIGTERM
|
||||||
|
trap 'cleanup SIGINT' SIGINT
|
||||||
|
|
||||||
if [ ! -f /nano-service-installers/$ORCHESTRATION_INSTALLATION_SCRIPT ]; then
|
if [ ! -f /nano-service-installers/$ORCHESTRATION_INSTALLATION_SCRIPT ]; then
|
||||||
echo "Error: agent installation package doesn't exist."
|
echo "Error: agent installation package doesn't exist."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z $1 ]; then
|
if [ -z "$1" ]; then
|
||||||
var_mode="--hybrid_mode"
|
var_mode="--hybrid_mode"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -45,30 +60,30 @@ while true; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -z $var_token ] && [ $var_mode != "--hybrid_mode" ]; then
|
if [ -z "$var_token" ] && [ "$var_mode" != "--hybrid_mode" ]; then
|
||||||
var_token=$(env | grep 'AGENT_TOKEN=' | cut -d'=' -f2-)
|
var_token=$(env | grep 'AGENT_TOKEN=' | cut -d'=' -f2-)
|
||||||
if [ -z $var_token ]; then
|
if [ -z "$var_token" ]; then
|
||||||
echo "Error: Token was not provided as input argument."
|
echo "Error: Token was not provided as input argument."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
orchestration_service_installation_flags="--container_mode --skip_registration"
|
orchestration_service_installation_flags="--container_mode --skip_registration"
|
||||||
if [ ! -z $var_token ]; then
|
if [ -n "$var_token" ]; then
|
||||||
export AGENT_TOKEN="$var_token"
|
export AGENT_TOKEN="$var_token"
|
||||||
orchestration_service_installation_flags="$orchestration_service_installation_flags --token $var_token"
|
orchestration_service_installation_flags="$orchestration_service_installation_flags --token $var_token"
|
||||||
fi
|
fi
|
||||||
if [ ! -z $var_fog_address ]; then
|
if [ -n "$var_fog_address" ]; then
|
||||||
orchestration_service_installation_flags="$orchestration_service_installation_flags --fog $var_fog_address"
|
orchestration_service_installation_flags="$orchestration_service_installation_flags --fog $var_fog_address"
|
||||||
fi
|
fi
|
||||||
if [ ! -z $var_proxy ]; then
|
if [ -n "$var_proxy" ]; then
|
||||||
orchestration_service_installation_flags="$orchestration_service_installation_flags --proxy $var_proxy"
|
orchestration_service_installation_flags="$orchestration_service_installation_flags --proxy $var_proxy"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z $var_mode ]; then
|
if [ -n "$var_mode" ]; then
|
||||||
orchestration_service_installation_flags="$orchestration_service_installation_flags $var_mode"
|
orchestration_service_installation_flags="$orchestration_service_installation_flags $var_mode"
|
||||||
fi
|
fi
|
||||||
if [ ! -z "$var_ignore" ]; then
|
if [ -n "$var_ignore" ]; then
|
||||||
orchestration_service_installation_flags="$orchestration_service_installation_flags $var_ignore"
|
orchestration_service_installation_flags="$orchestration_service_installation_flags $var_ignore"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -99,7 +114,7 @@ fi
|
|||||||
# use advanced model if exist as data for agent
|
# use advanced model if exist as data for agent
|
||||||
FILE=/advanced-model/open-appsec-advanced-model.tgz
|
FILE=/advanced-model/open-appsec-advanced-model.tgz
|
||||||
if [ -f "$FILE" ]; then
|
if [ -f "$FILE" ]; then
|
||||||
tar -xzvf $FILE -C /etc/cp/conf/waap
|
tar -xzvf "$FILE" -C /etc/cp/conf/waap
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch /etc/cp/watchdog/wd.startup
|
touch /etc/cp/watchdog/wd.startup
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ spec:
|
|||||||
stdout:
|
stdout:
|
||||||
format: json
|
format: json
|
||||||
cef-service: []
|
cef-service: []
|
||||||
--
|
---
|
||||||
apiVersion: openappsec.io/v1beta1
|
apiVersion: openappsec.io/v1beta1
|
||||||
kind: Practice
|
kind: Practice
|
||||||
metadata:
|
metadata:
|
||||||
@@ -56,7 +56,7 @@ spec:
|
|||||||
web-attacks:
|
web-attacks:
|
||||||
minimum-confidence: high
|
minimum-confidence: high
|
||||||
override-mode: detect-learn
|
override-mode: detect-learn
|
||||||
--
|
---
|
||||||
apiVersion: openappsec.io/v1beta1
|
apiVersion: openappsec.io/v1beta1
|
||||||
kind: CustomResponse
|
kind: CustomResponse
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ spec:
|
|||||||
stdout:
|
stdout:
|
||||||
format: json
|
format: json
|
||||||
cef-service: []
|
cef-service: []
|
||||||
--
|
---
|
||||||
apiVersion: openappsec.io/v1beta1
|
apiVersion: openappsec.io/v1beta1
|
||||||
kind: Practice
|
kind: Practice
|
||||||
metadata:
|
metadata:
|
||||||
@@ -56,7 +56,7 @@ spec:
|
|||||||
web-attacks:
|
web-attacks:
|
||||||
minimum-confidence: high
|
minimum-confidence: high
|
||||||
override-mode: prevent-learn
|
override-mode: prevent-learn
|
||||||
--
|
---
|
||||||
apiVersion: openappsec.io/v1beta1
|
apiVersion: openappsec.io/v1beta1
|
||||||
kind: CustomResponse
|
kind: CustomResponse
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
## Make sure to have a valid apisix configuration for APISIX in standalone mode in the following file:
|
## Make sure to have a valid apisix configuration for APISIX in standalone mode in the following file:
|
||||||
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
||||||
|
|||||||
@@ -103,14 +103,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
## Make sure to have a valid envoy.yaml Envoy configuration file present in the path below.
|
## Make sure to have a valid envoy.yaml Envoy configuration file present in the path below.
|
||||||
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
||||||
|
|||||||
@@ -109,14 +109,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
## Make sure to have a valid Kong declarative configuration file kong.yaml in the folder specified for KONG_CONFIG.
|
## Make sure to have a valid Kong declarative configuration file kong.yaml in the folder specified for KONG_CONFIG.
|
||||||
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
||||||
|
|||||||
@@ -106,14 +106,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
## Make sure to have a valid Kong declarative configuration file kong.yaml in the folder specified for KONG_CONFIG.
|
## Make sure to have a valid Kong declarative configuration file kong.yaml in the folder specified for KONG_CONFIG.
|
||||||
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
||||||
|
|||||||
@@ -106,14 +106,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
# Volume mounts for NGINX Proxy Manager have been moved here as well allowing configuration via .env file
|
# Volume mounts for NGINX Proxy Manager have been moved here as well allowing configuration via .env file
|
||||||
NPM_DATA=./data
|
NPM_DATA=./data
|
||||||
|
|||||||
@@ -103,14 +103,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
# Volume mounts for NGINX Proxy Manager have been moved here as well allowing configuration via .env file
|
# Volume mounts for NGINX Proxy Manager have been moved here as well allowing configuration via .env file
|
||||||
NPM_DATA=./data
|
NPM_DATA=./data
|
||||||
|
|||||||
@@ -106,14 +106,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
## Make sure to have a valid NGINX configuration file default.conf in the folder specified for NGINX_CONFIG.
|
## Make sure to have a valid NGINX configuration file default.conf in the folder specified for NGINX_CONFIG.
|
||||||
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
||||||
|
|||||||
@@ -96,14 +96,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
## Make sure to have a valid NGINX configuration file default.conf in the folder specified for NGINX_CONFIG.
|
## Make sure to have a valid NGINX configuration file default.conf in the folder specified for NGINX_CONFIG.
|
||||||
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
## For deployment of a simple lab testing environment, you can deploy the example configuration provided
|
||||||
|
|||||||
@@ -108,14 +108,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ APPSEC_DB_PASSWORD=pass
|
|||||||
APPSEC_DB_USER=postgres
|
APPSEC_DB_USER=postgres
|
||||||
APPSEC_DB_HOST=appsec-db
|
APPSEC_DB_HOST=appsec-db
|
||||||
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
APPSEC_POSTGRES_STORAGE=./appsec-postgres-data
|
||||||
|
APPSEC_POSTGRES_VERSION=18
|
||||||
|
|
||||||
## Most relevant SWAG parameters have been moved here as well allowing configuration via .env file
|
## Most relevant SWAG parameters have been moved here as well allowing configuration via .env file
|
||||||
SWAG_CONFIG=./swag-config
|
SWAG_CONFIG=./swag-config
|
||||||
|
|||||||
@@ -117,14 +117,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${APPSEC_POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
- POSTGRES_PASSWORD=${APPSEC_DB_PASSWORD}
|
||||||
- POSTGRES_USER=${APPSEC_DB_USER}
|
- POSTGRES_USER=${APPSEC_DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${APPSEC_POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
juiceshop-backend:
|
juiceshop-backend:
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ USER_EMAIL=user@email.com
|
|||||||
DB_PASSWORD=pass
|
DB_PASSWORD=pass
|
||||||
DB_USER=postgres
|
DB_USER=postgres
|
||||||
DB_HOST=appsec-db
|
DB_HOST=appsec-db
|
||||||
|
POSTGRES_VERSION=18
|
||||||
POSTGRES_STORAGE=./postgres-data
|
POSTGRES_STORAGE=./postgres-data
|
||||||
NGINX_CONF_DIR=./nginx-proxy-config
|
NGINX_CONF_DIR=./nginx-proxy-config
|
||||||
|
|
||||||
|
|||||||
@@ -81,14 +81,14 @@ services:
|
|||||||
appsec-db:
|
appsec-db:
|
||||||
profiles:
|
profiles:
|
||||||
- standalone
|
- standalone
|
||||||
image: postgres
|
image: postgres:${POSTGRES_VERSION}
|
||||||
container_name: appsec-db
|
container_name: appsec-db
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||||
- POSTGRES_USER=${DB_USER}
|
- POSTGRES_USER=${DB_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ${POSTGRES_STORAGE}:/var/lib/postgresql/data
|
- ${POSTGRES_STORAGE}:/var/lib/postgresql
|
||||||
|
|
||||||
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
## example juice-shop backend container (vulnerable webserver, USE ONLY FOR TESTING AND IN LAB ENV)
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user