version: "2"

services:
  db:
    image: mariadb
    volumes:
      - ./db/sql:/docker-entrypoint-initdb.d
      - ./db/data:/var/lib/mysql
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=yes

  dhcpv4:
    image: westerus/isc-kea
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - ./dhcpv4/conf/kea.conf:/etc/kea/kea.conf
    network_mode: "host"
    depends_on:
      - db

version: "2"

services:
  db:
    image: mariadb
    volumes:
      - ./db/sql:/docker-entrypoint-initdb.d
      - ./db/data:/var/lib/mysql
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=yes
  dhcpv4:
    image: westerus/isc-kea
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - ./dhcpv4/conf/kea.conf:/etc/kea/kea.conf
      - ./control/socks:/tmp
    network_mode: "host"
    depends_on:
      - db
  control:
    image: westerus/isc-kea:control
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - ./control/conf/kea-ca.conf:/etc/kea/kea-ca.conf
      - ./control/socks:/tmp
    depends_on:
      - db

Add control in docker-compose file
Add control in docker-compose file

Control service include in docker-compose.yml file