Table of Contents

openvas

version: '3'
services:
  openvas:
    image: ctdc/openvas
    ports:
      - 7443:443
        #      - 80
        #      - 9390-9392
    volumes:
      - /srv/openvas:/var/lib/openvas/mgr

oxidized

oxidized:
  restart: always
  image: oxidized/oxidized:latest
  ports:
    - 8888:8888/tcp
  environment:
    CONFIG_RELOAD_INTERVAL: 600
  volumes:
    - /srv/oxidized/home:/home/oxiized/.config/oxidized
    - /srv/oxidized/model:/var/lib/gems/2.7.0/gems/oxidized-0.28.0/lib/oxidized/model [optional]

inside /srv/oxidized/home there are many files:

  1. config [containing all configurations]
  2. router.db [a small db for router, for example <name:model:group-name> ]
  3. oter directory, for example a git repo dir

inside /srv/oxidized/model (but maybe i t could be also inside home) there are all ruby files relative to model. for dell i used powerconnect

docker compose e dockerfile

in some cases it can be necessary to build your own docker image and the use ti inside a docker compose. here an example:
Pay attention on the line in docker-compose.yml

build: .

docker-compose.yml

services:
  db:
    image: mysql
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: NotVega2021!
    volumes:
      - "/srv/rubrica/db/:/var/lib/mysql"

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080

  httpd:
    build: .
    image: myphp:1
    restart: always
    ports:
      - 8081:80
    volumes:
      - "/srv/rubrica/httpd/:/var/www/html/"

Dockerfile

FROM php:apache
RUN docker-php-ext-install mysqli
RUN docker-php-ext-enable mysqli