combined all docker compose to one big chungus

This commit is contained in:
Vomitblood 2025-02-13 02:45:16 +08:00
parent e58620fc42
commit fb1e39ed1c
3 changed files with 27 additions and 3 deletions

View file

@ -2,6 +2,7 @@ services:
postgres: postgres:
image: postgres:latest image: postgres:latest
container_name: postgres_db container_name: postgres_db
restart: unless-stopped
environment: environment:
POSTGRES_USER: asdfuser POSTGRES_USER: asdfuser
POSTGRES_PASSWORD: asdfpassword POSTGRES_PASSWORD: asdfpassword
@ -14,7 +15,7 @@ services:
modsecurity: modsecurity:
image: owasp/modsecurity-crs:apache-alpine image: owasp/modsecurity-crs:apache-alpine
container_name: modsecurity container_name: modsecurity
restart: always restart: unless-stopped
environment: environment:
BACKEND: "http://localhost:80" BACKEND: "http://localhost:80"
SERVER_NAME: "localhost" SERVER_NAME: "localhost"
@ -36,9 +37,27 @@ services:
dvwa: dvwa:
image: vulnerables/web-dvwa image: vulnerables/web-dvwa
container_name: dvwa container_name: dvwa
restart: always restart: unless-stopped
ports: ports:
- "80:80" - "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: volumes:
postgres_data: postgres_data:

1
docker/chungus/remove.sh Normal file
View file

@ -0,0 +1 @@
docker container rm modsecurity suricata dvwa postgres_db

View file

@ -1,7 +1,11 @@
mkdir logs mkdir logs
touch ./logs/host-fs-auditlog.log touch ./logs/host-fs-auditlog.log
touch ./logs/host-fs-errorlog.log touch ./logs/host-fs-errorlog.log
touch ./logs/host-fs-accesslog.log touch ./logs/host-fs-accesslog.log
chmod 777 ./logs/host-fs-auditlog.log chmod 777 ./logs/host-fs-auditlog.log
chmod 777 ./logs/host-fs-errorlog.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