combined all docker compose to one big chungus
This commit is contained in:
parent
e58620fc42
commit
fb1e39ed1c
|
@ -2,6 +2,7 @@ services:
|
|||
postgres:
|
||||
image: postgres:latest
|
||||
container_name: postgres_db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: asdfuser
|
||||
POSTGRES_PASSWORD: asdfpassword
|
||||
|
@ -14,7 +15,7 @@ services:
|
|||
modsecurity:
|
||||
image: owasp/modsecurity-crs:apache-alpine
|
||||
container_name: modsecurity
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
BACKEND: "http://localhost:80"
|
||||
SERVER_NAME: "localhost"
|
||||
|
@ -36,9 +37,27 @@ services:
|
|||
dvwa:
|
||||
image: vulnerables/web-dvwa
|
||||
container_name: dvwa
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
|
||||
cspj-server:
|
||||
image: cspj-server
|
||||
container_name: cspj-server
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
depends_on:
|
||||
- postgres
|
||||
volumes:
|
||||
- "/home/vomitblood/build/cspj-application/docker/chungus/logs/:/tmp"
|
||||
command: ["server", "-l", "/tmp"]
|
||||
|
||||
cspj-ml-server:
|
||||
image: cspj-ml-server
|
||||
container_name: cspj-ml-server
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5000:5000"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
|
1
docker/chungus/remove.sh
Normal file
1
docker/chungus/remove.sh
Normal file
|
@ -0,0 +1 @@
|
|||
docker container rm modsecurity suricata dvwa postgres_db
|
|
@ -1,7 +1,11 @@
|
|||
mkdir logs
|
||||
|
||||
touch ./logs/host-fs-auditlog.log
|
||||
touch ./logs/host-fs-errorlog.log
|
||||
touch ./logs/host-fs-accesslog.log
|
||||
|
||||
chmod 777 ./logs/host-fs-auditlog.log
|
||||
chmod 777 ./logs/host-fs-errorlog.log
|
||||
chmod 777 ./logs/host-fs-accesslog.log
|
||||
chmod 777 ./logs/host-fs-accesslog.log
|
||||
|
||||
docker compose up
|
Loading…
Reference in a new issue