Skip to content

Running Netshot in Docker

SCadilhac edited this page Sep 13, 2024 · 10 revisions

Using Compose to run all components

The fastest way to run Netshot is to use Docker Compose to start all required components.

wget https://raw.githubusercontent.com/netfishers-onl/Netshot/master/dist/compose.yaml
docker compose up -d

You can try different versions of the Netshot container:

  • ghcr.io/netfishers-onl/netshot:latest for the last release
  • ghcr.io/netfishers-onl/netshot:master for the latest code
  • ghcr.io/netfishers-onl/netshot:sha-... for a specific commit

From code repository

Compose stack

To fetch the current code, build and start Netshot (along with DB and reverse proxy containers):

git clone https://github.com/netfishers-onl/Netshot
cd Netshot
docker compose up -d

Local build of the container

# Select a specific version
VERSION=0.19.1
git clone https://github.com/netfishers-onl/Netshot
cd Netshot
git checkout v$VERSION
docker build -t netshot:$VERSION .