Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 947 Bytes

docker.md

File metadata and controls

38 lines (25 loc) · 947 Bytes

DNS-collector - Docker

Docker

Docker run with a custom configuration:

docker run -d dmachard/go-dnscollector -v $(pwd)/config.yml:/etc/dnscollector/config.yml

Docker-compose (Recommended)

Create a directory of your choice (e.g. ./dnscollector) to hold the docker-compose.yml and .env files.

mkdir ./dnscollector
cd ./dnscollector

Download docker-compose.yml and docker-example.env, either by running the following commands:

wget https://github.com/dmachard/go-dnscollector/releases/latest/download/docker-compose.yml
wget -O .env https://github.com/dmachard/go-dnscollector/releases/latest/download/docker-example.env

Populate the .env file with custom values:

  • Update DNSCOLLECTOR_DATA with your preferred location for storing DNS logs.

Start the containers using docker compose command

docker compose up -d