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
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
### Ubuntu / Debian
|
### Ubuntu / Debian
|
||||||
|
|
||||||
```bash
|
```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**
|
Open **http://YOUR_SERVER_IP:4567**
|
||||||
|
|||||||
@@ -9,13 +9,10 @@ services:
|
|||||||
image: eduard256/strix:latest
|
image: eduard256/strix:latest
|
||||||
container_name: strix
|
container_name: strix
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
network_mode: host
|
||||||
- "4567:4567"
|
|
||||||
environment:
|
environment:
|
||||||
- STRIX_LOG_LEVEL=info
|
- STRIX_LOG_LEVEL=info
|
||||||
- STRIX_LOG_FORMAT=json
|
- STRIX_LOG_FORMAT=json
|
||||||
networks:
|
|
||||||
- cameras
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4567/api/v1/health"]
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4567/api/v1/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
+1
-3
@@ -7,9 +7,7 @@ services:
|
|||||||
# build: .
|
# build: .
|
||||||
container_name: strix
|
container_name: strix
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
network_mode: host
|
||||||
ports:
|
|
||||||
- "4567:4567"
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
# Logging configuration
|
# Logging configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user