Jose E. Rodriguez преди 1 месец
родител
ревизия
0636438f87
променени са 2 файла, в които са добавени 31 реда и са изтрити 0 реда
  1. 16
    0
      Dockerfile
  2. 15
    0
      docker-compose.yml

+ 16
- 0
Dockerfile Целия файл

@@ -0,0 +1,16 @@
1
+# Use the existing OpenVAS Docker image as a base
2
+FROM immauss/openvas
3
+
4
+# Update the system and install Python and pip (if needed for internal use)
5
+RUN apt-get update && apt-get install -y \
6
+    python3 \
7
+    python3-pip \
8
+    nmap \
9
+    && rm -rf /var/lib/apt/lists/*
10
+
11
+# Expose the port for GVM API
12
+EXPOSE 9390
13
+
14
+# Start OpenVAS and gvmd in foreground
15
+CMD ["/usr/local/bin/start"]
16
+

+ 15
- 0
docker-compose.yml Целия файл

@@ -0,0 +1,15 @@
1
+version: "3"
2
+services:
3
+  openvas:
4
+    build: .
5
+    container_name: openvas
6
+    ports:
7
+      - "9392:9392"  # Web Interface
8
+      - "9390:9390"  # API Access
9
+    environment:
10
+      USERNAME: "admin"
11
+      PASSWORD: "admin"
12
+    volumes:
13
+      - ./GBCommunitySigningKey.asc:/etc/GBCommunitySigningKey.asc
14
+    restart: unless-stopped
15
+