Update Dockerfile.daemon to allow for easier SERVER_TARGET override

This commit is contained in:
Maya
2025-10-21 19:53:34 -04:00
parent 6cadd9c182
commit b2adce0e62
3 changed files with 1 additions and 9 deletions
+1 -3
View File
@@ -30,9 +30,7 @@ RUN chmod +x /usr/local/bin/netvisor-daemon
EXPOSE 60073
# Health check for daemon
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:60073/api/health || exit 1
# Default command - can be overridden with docker-compose
CMD ["netvisor-daemon", "--server-target", "host.docker.internal", "--server-port", "60072"]
CMD ["netvisor-daemon"]
-2
View File
@@ -1,4 +1,3 @@
# This is meant to be used on Linux hosts where --network host actually works
services:
daemon:
image: mayanayza/netvisor-daemon:latest
@@ -18,7 +17,6 @@ services:
- NETVISOR_LOG_LEVEL=${NETVISOR_LOG_LEVEL:-info}
- NETVISOR_HEARTBEAT_INTERVAL=${NETVISOR_HEARTBEAT_INTERVAL:-30}
volumes:
# Persist daemon configuration and ID
- daemon-config:/root/.config/netvisor/daemon
volumes:
-4
View File
@@ -18,16 +18,12 @@ services:
timeout: 5s
retries: 5
restart: unless-stopped
networks:
netvisor-dev:
ipv4_address: 172.25.0.6
server:
image: mayanayza/netvisor-server:latest
ports:
- "${NETVISOR_SERVER_PORT:-60072}:60072"
environment:
# Server configuration
- NETVISOR_SERVER_PORT=${NETVISOR_SERVER_PORT:-60072}
- NETVISOR_LOG_LEVEL=${NETVISOR_LOG_LEVEL:-info}
- NETVISOR_DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD:-password}@postgres:5432/netvisor