From 38e4af230f2ec109882818d200cc296864021a30 Mon Sep 17 00:00:00 2001 From: eduard256 Date: Wed, 26 Nov 2025 12:57:45 +0300 Subject: [PATCH] Use host network mode for Docker deployments - Update docker run command to use --network host - Update docker-compose.yml to use network_mode: host - Update docker-compose.full.yml to use network_mode: host - Remove port mappings as they are not needed with host network --- README.md | 2 +- docker-compose.full.yml | 5 +---- docker-compose.yml | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 83a27e9..746b9bc 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ ### Ubuntu / Debian ```bash -sudo apt update && command -v docker >/dev/null 2>&1 || curl -fsSL https://get.docker.com | sudo sh && docker run -d --name strix -p 4567:4567 --restart unless-stopped eduard256/strix:latest +sudo apt update && command -v docker >/dev/null 2>&1 || curl -fsSL https://get.docker.com | sudo sh && docker run -d --name strix --network host --restart unless-stopped eduard256/strix:latest ``` Open **http://YOUR_SERVER_IP:4567** diff --git a/docker-compose.full.yml b/docker-compose.full.yml index 3aaf514..18b7b64 100644 --- a/docker-compose.full.yml +++ b/docker-compose.full.yml @@ -9,13 +9,10 @@ services: image: eduard256/strix:latest container_name: strix restart: unless-stopped - ports: - - "4567:4567" + network_mode: host environment: - STRIX_LOG_LEVEL=info - STRIX_LOG_FORMAT=json - networks: - - cameras healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4567/api/v1/health"] interval: 30s diff --git a/docker-compose.yml b/docker-compose.yml index f69839c..8e705a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,9 +7,7 @@ services: # build: . container_name: strix restart: unless-stopped - - ports: - - "4567:4567" + network_mode: host environment: # Logging configuration