creaded correct docker image creation file
This commit is contained in:
36
DOCKER.md
36
DOCKER.md
@@ -1,5 +1,14 @@
|
||||
# Docker Deployment Guide
|
||||
|
||||
## Overview
|
||||
|
||||
DigiServer v2 Docker image features:
|
||||
- **Base image size**: ~400MB (optimized)
|
||||
- **Full HD media support**: Images, videos, PDFs
|
||||
- **Optional LibreOffice**: Install on-demand for PPTX support (+500MB)
|
||||
- **Auto-initialization**: Database and admin user created on first run
|
||||
- **Non-root user**: Runs as `appuser` (UID 1000) for security
|
||||
|
||||
## Quick Start
|
||||
|
||||
### 1. Build and Run with Docker Compose
|
||||
@@ -171,6 +180,24 @@ docker-compose exec digiserver bash
|
||||
docker exec -it digiserver bash
|
||||
```
|
||||
|
||||
### Installing Optional Dependencies
|
||||
|
||||
**LibreOffice for PowerPoint Support:**
|
||||
|
||||
```bash
|
||||
# Method 1: Via Web UI (Recommended)
|
||||
# Navigate to Admin Panel → System Dependencies
|
||||
# Click "Install LibreOffice" button
|
||||
|
||||
# Method 2: Via Docker exec
|
||||
docker exec -it digiserver bash
|
||||
sudo /app/install_libreoffice.sh
|
||||
exit
|
||||
|
||||
# Verify installation
|
||||
docker exec digiserver libreoffice --version
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Port Already in Use
|
||||
@@ -210,10 +237,15 @@ docker-compose up -d
|
||||
|
||||
## System Requirements
|
||||
|
||||
### Base Image
|
||||
- Docker 20.10+
|
||||
- Docker Compose 2.0+
|
||||
- 2GB RAM minimum
|
||||
- 10GB disk space for media files
|
||||
- 1GB RAM minimum (2GB recommended)
|
||||
- 5GB disk space (base + uploads)
|
||||
|
||||
### With LibreOffice (Optional)
|
||||
- 2GB RAM recommended
|
||||
- 10GB disk space (includes LibreOffice + media)
|
||||
|
||||
## Security Recommendations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user