Skip to content

Commit 1212cba

Browse files
committed
Updated docker compose and docker run
1 parent fe7d90c commit 1212cba

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

src/pages/pageInstallation.tsx

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,22 @@ const Installation = () => {
4444
<h2 className="text-2xl font-semibold">Docker Installation</h2>
4545
<p>Run CheckCle using Docker with these simple steps:</p>
4646
<div className="bg-muted rounded-lg p-4 font-mono text-sm space-y-4">
47-
<div>
48-
<p className="text-muted-foreground"># Create Docker Volume for data persistence</p>
49-
<p>docker volume create pb_data</p>
50-
</div>
5147
<div>
5248
<p className="text-muted-foreground"># Docker Run Command</p>
53-
<p>docker run --name checkcle --restart unless-stopped -p 8090:8090 -v pb_data:/app/pb_data --ulimit nofile=4096:8192 operacle/checkcle:latest
49+
<p>
50+
<pre className="whitespace-pre-wrap">
51+
{`
52+
docker run -d \
53+
--name checkcle \
54+
--restart unless-stopped \
55+
-p 8090:8090 \
56+
-v /opt/pb_data:/mnt/pb_data \
57+
--ulimit nofile=4096:8192 \
58+
operacle/checkcle:latest
59+
60+
`}
61+
</pre>
62+
5463
</p>
5564
</div>
5665
</div>
@@ -77,22 +86,23 @@ const Installation = () => {
7786
<div className="bg-muted rounded-lg p-4 font-mono text-sm space-y-2">
7887
<p className="text-muted-foreground"># Create docker-compose.yml</p>
7988
<pre className="whitespace-pre-wrap">
80-
{`services:
89+
{`
90+
version: '3.9'
91+
92+
services:
8193
checkcle:
8294
image: operacle/checkcle:latest
8395
container_name: checkcle
8496
restart: unless-stopped
8597
ports:
8698
- "8090:8090" # Web Application
8799
volumes:
88-
- pb_data:/app/pb_data # Ensure persistent data across rebuilds
100+
- /opt/pb_data:/mnt/pb_data # Host directory mapped to container path
89101
ulimits:
90102
nofile:
91103
soft: 4096
92104
hard: 8192
93105
94-
volumes:
95-
pb_data: # Docker-managed volume for data persistence
96106
97107
`}
98108
</pre>

0 commit comments

Comments
 (0)