|
203 | 203 | <span>Copy & paste in your terminal</span> |
204 | 204 | <button class="copy-btn" @click="copyCode(0)">{{ copied === 0 ? 'Copied!' : 'Copy' }}</button> |
205 | 205 | </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> |
211 | 223 | </div> |
212 | 224 | </div> |
213 | 225 | <p class="code-footnote"> |
@@ -265,7 +277,7 @@ const copied = ref(null) |
265 | 277 |
|
266 | 278 | function copyCode(idx) { |
267 | 279 | 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', |
269 | 281 | ] |
270 | 282 | navigator.clipboard.writeText(codes[idx]) |
271 | 283 | copied.value = idx |
|
0 commit comments