74 lines
1.3 KiB
Markdown
74 lines
1.3 KiB
Markdown
# 🚀 Quick Start - Docker Deployment
|
||
|
||
## What You Need
|
||
- A server with Docker installed
|
||
- 2GB free disk space
|
||
- Ports 8781 and 3306 available
|
||
|
||
## Deploy in 3 Steps
|
||
|
||
### 1️⃣ Install Docker (if not already installed)
|
||
|
||
**Ubuntu/Debian:**
|
||
```bash
|
||
curl -fsSL https://get.docker.com -o get-docker.sh
|
||
sudo sh get-docker.sh
|
||
sudo usermod -aG docker $USER
|
||
```
|
||
Then log out and back in.
|
||
|
||
### 2️⃣ Deploy the Application
|
||
```bash
|
||
cd /srv/quality_recticel
|
||
./deploy.sh
|
||
```
|
||
|
||
### 3️⃣ Access Your Application
|
||
Open browser: **http://localhost:8781**
|
||
|
||
**Login:**
|
||
- Username: `superadmin`
|
||
- Password: `superadmin123`
|
||
|
||
## 🎯 Done!
|
||
|
||
Your complete application with database is now running in Docker containers.
|
||
|
||
## Common Commands
|
||
|
||
```bash
|
||
# View logs
|
||
docker compose logs -f
|
||
|
||
# Stop services
|
||
docker compose down
|
||
|
||
# Restart services
|
||
docker compose restart
|
||
|
||
# Backup database
|
||
docker compose exec -T db mariadb-dump -u trasabilitate -pInitial01! trasabilitate > backup.sql
|
||
```
|
||
|
||
## 📚 Full Documentation
|
||
|
||
See `DOCKER_DEPLOYMENT.md` for complete documentation.
|
||
|
||
## 🆘 Problems?
|
||
|
||
```bash
|
||
# Check status
|
||
docker compose ps
|
||
|
||
# View detailed logs
|
||
docker compose logs -f web
|
||
|
||
# Start fresh
|
||
docker compose down -v
|
||
./deploy.sh
|
||
```
|
||
|
||
---
|
||
|
||
**Note:** This is a production-ready deployment using Gunicorn WSGI server, MariaDB 11.3, and proper health checks.
|