deploy
This commit is contained in:
49
README.md
49
README.md
@@ -66,10 +66,53 @@ Frontend will be available at: http://localhost:5173
|
||||
|
||||
## Demo Accounts
|
||||
|
||||
After seeding the database:
|
||||
After seeding the database (runs automatically on container start):
|
||||
|
||||
- **Admin:** admin@example.com / adminpassword
|
||||
- **User:** user@example.com / userpassword
|
||||
| Email | Password | Role |
|
||||
|-------|----------|------|
|
||||
| admin@example.com | adminpassword | Superadmin |
|
||||
| manager@example.com | managerpassword | Manager |
|
||||
| user@example.com | userpassword | User |
|
||||
|
||||
## Docker Compose (local)
|
||||
|
||||
```bash
|
||||
# Create .env from template
|
||||
cp backend/.env.example backend/.env
|
||||
# Edit .env with your values
|
||||
|
||||
# Start all services
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
Frontend: http://localhost
|
||||
Backend API: http://localhost:8000/docs
|
||||
|
||||
## Deploy (Dokploy)
|
||||
|
||||
```
|
||||
Dokploy UI → New Service → Docker Compose → Git: space-booking repo
|
||||
```
|
||||
|
||||
### Environment Variables (Dokploy → Environment tab)
|
||||
|
||||
| Variable | Required | Example |
|
||||
|----------|----------|---------|
|
||||
| `SECRET_KEY` | **Yes** | `python -c "import secrets; print(secrets.token_hex(32))"` |
|
||||
| `FRONTEND_URL` | **Yes** | `https://space.roa.romfast.ro` |
|
||||
| `SMTP_ENABLED` | No | `true` |
|
||||
| `SMTP_HOST` | No* | `smtp.example.com` |
|
||||
| `SMTP_PORT` | No* | `587` |
|
||||
| `SMTP_USER` | No* | `user@example.com` |
|
||||
| `SMTP_PASSWORD` | No* | `secret` |
|
||||
| `SMTP_FROM_ADDRESS` | No* | `rezervari@romfast.ro` |
|
||||
|
||||
*Required only if `SMTP_ENABLED=true`
|
||||
|
||||
### Auto-seed
|
||||
|
||||
`entrypoint.sh` runs `seed_db.py` automatically on every container start.
|
||||
The script is idempotent — skips if data already exists.
|
||||
|
||||
## Development Commands
|
||||
|
||||
|
||||
Reference in New Issue
Block a user