Skip to content

Commit 634f044

Browse files
committed
fix(landing): replace git clone with docker run commands
1 parent 3fdcf9e commit 634f044

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

‎site/.vitepress/theme/components/ArusHome.vue‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,23 @@
203203
<span>Copy &amp; paste in your terminal</span>
204204
<button class="copy-btn" @click="copyCode(0)">{{ copied === 0 ? 'Copied!' : 'Copy' }}</button>
205205
</div>
206-
<pre><code>git clone https://github.com/edsuwarna/arus.git
207-
cd arus
208-
echo "ARUS_JWT_SECRET=$(openssl rand -hex 32)" > .env
209-
echo "ARUS_ENCRYPTION_KEY=$(openssl rand -hex 32)" >> .env
210-
docker compose up -d</code></pre>
206+
<pre><code>docker network create arus-net
207+
208+
docker run -d --network arus-net --name arus-db \
209+
-e POSTGRES_USER=arus \
210+
-e POSTGRES_PASSWORD=arus_secret \
211+
-e POSTGRES_DB=arus_warehouse \
212+
-v arus-db-data:/var/lib/postgresql/data \
213+
postgres:15-alpine
214+
215+
docker run -d --network arus-net --name arus-api -p 8081:8081 \
216+
-e ARUS_DB_HOST=arus-db \
217+
-e ARUS_JWT_SECRET=$(openssl rand -hex 32) \
218+
-e ARUS_ENCRYPTION_KEY=$(openssl rand -hex 32) \
219+
registry.edsuwarna.xyz/arus-api:main-latest
220+
221+
docker run -d --network arus-net --name arus-console -p 8082:80 \
222+
registry.edsuwarna.xyz/arus-console:main-latest</code></pre>
211223
</div>
212224
</div>
213225
<p class="code-footnote">
@@ -265,7 +277,7 @@ const copied = ref(null)
265277
266278
function copyCode(idx) {
267279
const codes = [
268-
'git clone https://github.com/edsuwarna/arus.git\ncd arus\necho "ARUS_JWT_SECRET=$(openssl rand -hex 32)" > .env\necho "ARUS_ENCRYPTION_KEY=$(openssl rand -hex 32)" >> .env\ndocker compose up -d',
280+
'docker network create arus-net\n\ndocker run -d --network arus-net --name arus-db \\\n -e POSTGRES_USER=arus \\\n -e POSTGRES_PASSWORD=arus_secret \\\n -e POSTGRES_DB=arus_warehouse \\\n -v arus-db-data:/var/lib/postgresql/data \\\n postgres:15-alpine\n\ndocker run -d --network arus-net --name arus-api -p 8081:8081 \\\n -e ARUS_DB_HOST=arus-db \\\n -e ARUS_JWT_SECRET=$(openssl rand -hex 32) \\\n -e ARUS_ENCRYPTION_KEY=$(openssl rand -hex 32) \\\n registry.edsuwarna.xyz/arus-api:main-latest\n\ndocker run -d --network arus-net --name arus-console -p 8082:80 \\\n registry.edsuwarna.xyz/arus-console:main-latest',
269281
]
270282
navigator.clipboard.writeText(codes[idx])
271283
copied.value = idx

0 commit comments

Comments
 (0)