diff --git a/Dockerfile b/Dockerfile index f3afc67f0..624e7eb10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 2e1e99465..899b8788c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 61b57a761..07eaa4a84 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" diff --git a/docs/RELEASE_PROCESS.md b/docs/RELEASE_PROCESS.md index 2a08ae9da..048965f6d 100644 --- a/docs/RELEASE_PROCESS.md +++ b/docs/RELEASE_PROCESS.md @@ -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: