108 lines
3.2 KiB
HTML
108 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Installation - DearDiary</title>
|
|
<link rel="stylesheet" href="../css/styles.css">
|
|
<link rel="stylesheet" href="../css/docs.css">
|
|
</head>
|
|
<body>
|
|
<nav class="navbar">
|
|
<div class="nav-container">
|
|
<a href="../" class="logo">
|
|
<svg width="32" height="32" viewBox="0 0 100 100"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:#6d28d9"/><stop offset="100%" style="stop-color:#4c1d95"/></linearGradient></defs><rect width="100" height="100" rx="20" fill="url(#g)"/><path d="M25 25 L75 25 L75 80 L25 80 Z" fill="none" stroke="white" stroke-width="3"/><path d="M35 40 L65 40 M35 50 L65 50 M35 60 L55 60" stroke="white" stroke-width="2"/></svg>
|
|
DearDiary
|
|
</a>
|
|
<div class="nav-links">
|
|
<a href="../">Home</a>
|
|
<a href="../docs/" class="active">Docs</a>
|
|
<a href="../blog/">Blog</a>
|
|
<a href="${GIT_URL}" target="_blank">Git Repository</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="docs-layout">
|
|
<aside class="docs-sidebar">
|
|
<div class="sidebar-section">
|
|
<h3>Getting Started</h3>
|
|
<a href="installation.html" class="active">Installation</a>
|
|
<a href="quick-start.html">Quick Start</a>
|
|
<a href="ai-providers.html">AI Providers</a>
|
|
</div>
|
|
</aside>
|
|
|
|
<main class="docs-content">
|
|
<h1>Installation</h1>
|
|
|
|
<h2>Prerequisites</h2>
|
|
<ul>
|
|
<li><a href="https://docs.docker.com/get-docker/" target="_blank">Docker</a> and Docker Compose</li>
|
|
<li>Git</li>
|
|
</ul>
|
|
|
|
<h2>Quick Install</h2>
|
|
|
|
<h3>1. Clone the repository</h3>
|
|
<pre><code>git clone ${GIT_URL}.git
|
|
cd deardiary</code></pre>
|
|
|
|
<h3>2. Copy the environment file</h3>
|
|
<pre><code>cp .env.example .env</code></pre>
|
|
|
|
<h3>3. Start with Docker</h3>
|
|
<pre><code>docker compose up -d</code></pre>
|
|
|
|
<h3>4. Access the app</h3>
|
|
<p>Open <code>http://localhost:3000</code> in your browser.</p>
|
|
|
|
<h2>Default Credentials</h2>
|
|
<table>
|
|
<tr>
|
|
<td><strong>Email</strong></td>
|
|
<td><code>admin@localhost</code></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Password</strong></td>
|
|
<td><code>changeme123</code></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div class="tip">
|
|
<strong>Important:</strong> Change these credentials immediately after first login!
|
|
</div>
|
|
|
|
<h2>Ports</h2>
|
|
<table>
|
|
<tr>
|
|
<th>Service</th>
|
|
<th>Port</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
<tr>
|
|
<td>App</td>
|
|
<td>3000</td>
|
|
<td>Frontend + API (nginx)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Website</td>
|
|
<td>8080</td>
|
|
<td>Product website</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2>Data Storage</h2>
|
|
<p>All data is stored in Docker volumes:</p>
|
|
<ul>
|
|
<li><code>./data/</code> - SQLite database and media files</li>
|
|
</ul>
|
|
|
|
<div class="next-steps">
|
|
<a href="quick-start.html" class="btn btn-primary">Next: Quick Start →</a>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|