mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-09 10:57:04 +00:00
Fix Docker configuration and test deployment
- Docker build tested and working - Fixed port configuration (UI and API both on port 3000) - Updated docker-compose.yml to map 7655:3000 - Updated Dockerfile health check to use correct port - Removed obsolete version field from docker-compose.yml - Updated README to reflect correct port mappings - Application successfully tested in Docker container
This commit is contained in:
parent
d63ea7824d
commit
1864baeabc
3 changed files with 9 additions and 12 deletions
|
|
@ -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"]
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue