Bläddra i källkod

Upload files to ''

Jose E. Rodriguez 1 månad sedan
förälder
incheckning
0636438f87
2 ändrade filer med 31 tillägg och 0 borttagningar
  1. 16
    0
      Dockerfile
  2. 15
    0
      docker-compose.yml

+ 16
- 0
Dockerfile Visa fil

@@ -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 Visa fil

@@ -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
+