mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
refactor: remove unnecessary production/development distinctions in Docker configuration and documentation
This commit is contained in:
+2
-3
@@ -43,9 +43,8 @@ RUN npm ci --only=production
|
||||
# Create logs directory with proper permissions
|
||||
RUN mkdir -p /app/logs && chown -R pulse:pulse /app/logs
|
||||
|
||||
# Set production environment
|
||||
ENV NODE_ENV=production \
|
||||
PORT=7654
|
||||
# Set environment variables
|
||||
ENV PORT=7654
|
||||
|
||||
# Switch to non-root user
|
||||
USER pulse
|
||||
|
||||
@@ -16,7 +16,7 @@ cd frontend && npm install && cd ..
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
### 🚀 Production
|
||||
### 🚀 Docker
|
||||
```bash
|
||||
# 1. Create your .env file with ProxMox configuration
|
||||
cp .env.example .env
|
||||
@@ -47,9 +47,9 @@ docker-compose up -d
|
||||
open http://localhost:7654 # or visit in your browser
|
||||
```
|
||||
|
||||
The Docker image is optimized for production use:
|
||||
The Docker image is optimized for:
|
||||
- Minimal image size with multi-stage builds
|
||||
- Runs as non-root user for security
|
||||
- Security with non-root user execution
|
||||
- Proper log handling and permissions
|
||||
- Automatic restart on failure
|
||||
- SSL/TLS support via environment variables
|
||||
@@ -176,7 +176,6 @@ PROXMOX_NODE_2_TOKEN_SECRET=your-token-secret
|
||||
|
||||
# App Configuration
|
||||
PORT=7654
|
||||
NODE_ENV=production
|
||||
LOG_LEVEL=info
|
||||
METRICS_HISTORY_MINUTES=60
|
||||
NODE_POLLING_INTERVAL_MS=1000
|
||||
|
||||
+1
-4
@@ -7,11 +7,8 @@ services:
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- LOG_LEVEL=debug
|
||||
- NODE_ENV=production
|
||||
- LOG_LEVEL=info
|
||||
- NODE_OPTIONS=--no-warnings
|
||||
- DEBUG=false
|
||||
- NODE_DEBUG=false
|
||||
- SUPPRESS_NO_CONFIG_WARNING=true
|
||||
logging:
|
||||
driver: "json-file"
|
||||
|
||||
@@ -88,7 +88,7 @@ If you need to perform a release manually, follow these steps:
|
||||
|
||||
4. Build Docker images:
|
||||
```bash
|
||||
docker build --target production -t rcourtman/pulse:X.Y.Z -t rcourtman/pulse:latest .
|
||||
docker build -t rcourtman/pulse:X.Y.Z -t rcourtman/pulse:latest .
|
||||
```
|
||||
|
||||
5. Push Docker images:
|
||||
|
||||
Reference in New Issue
Block a user