diff --git a/Dockerfile b/Dockerfile index a5a9dd1e0..6b44963c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,8 +50,8 @@ COPY pulse-backend.service pulse-frontend.service ./ # Create config directory RUN mkdir -p /etc/pulse /data -# Expose ports -EXPOSE 3000 7655 +# Expose port +EXPOSE 3000 # Set environment variables ENV PULSE_CONFIG_DIR=/etc/pulse @@ -65,7 +65,7 @@ USER pulse # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:7655 || exit 1 + CMD wget --no-verbose --tries=1 --spider http://localhost:3000 || exit 1 # Run the binary CMD ["./pulse"] \ No newline at end of file diff --git a/README.md b/README.md index 2a2015b25..c43211dcd 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Choose **one** method: bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/pulse.sh)" # Option B: Docker (For existing Docker hosts) -docker run -d -p 7655:7655 -v pulse_config:/etc/pulse -v pulse_data:/data rcourtman/pulse:latest +docker run -d -p 7655:3000 -v pulse_config:/etc/pulse -v pulse_data:/data rcourtman/pulse:latest # Option C: Manual Install (For existing LXC/VMs) curl -fsSL https://raw.githubusercontent.com/rcourtman/Pulse/main/scripts/install-pulse.sh | sudo bash @@ -183,15 +183,15 @@ Pulse provides a REST API for integration: - `GET /api/backups` - Backup information - `GET /api/charts/:type/:id` - Historical metrics -WebSocket endpoint: `ws://your-server:3000/ws` for real-time updates. +WebSocket endpoint: `ws://your-server:7655/ws` for real-time updates. ## Troubleshooting ### Common Issues 1. **"Connection refused" error** - - Check firewall rules for ports 7655 (UI) and 3000 (API) - - Verify Pulse is running: `systemctl status pulse` + - Check firewall rules for port 7655 + - Verify Pulse is running: `systemctl status pulse-backend` 2. **"Invalid credentials" error** - Ensure user has at least `PVEAuditor` role diff --git a/docker-compose.yml b/docker-compose.yml index aa8996d20..140ccdb00 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,9 @@ -version: '3.8' - services: pulse: image: rcourtman/pulse:latest container_name: pulse ports: - - "7655:7655" # Web UI - - "3000:3000" # API (optional, only if you need direct API access) + - "7655:3000" # Web UI and API volumes: - pulse_config:/etc/pulse - pulse_data:/data @@ -14,7 +11,7 @@ services: - TZ=UTC # Set your timezone restart: unless-stopped healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7655"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000"] interval: 30s timeout: 10s retries: 3