mirror of
https://github.com/mayanayza/netvisor.git
synced 2025-12-10 08:24:08 -06:00
Update Dockerfile.daemon to allow for easier SERVER_TARGET override
This commit is contained in:
@@ -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"]
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user