Fixed: combines new build-based setup with persistent data using Host (volume) directory mapped to container path

This commit is contained in:
Tola Leng
2025-05-26 22:54:47 +08:00
parent 3799be8b23
commit bff3cd7d91
3 changed files with 11 additions and 15 deletions
+4 -5
View File
@@ -1,3 +1,5 @@
version: '3.9'
services:
checkcle:
build:
@@ -6,13 +8,10 @@ services:
container_name: checkcle
restart: unless-stopped
ports:
- "8090:8090" # Allow access to frontend + PocketBase
- "8090:8090"
volumes:
- pb_data:/app/pb_data # Ensure persistent data across rebuilds
- /var/pb_data:/mnt/pb_data # Updated mount target to match CMD in Dockerfile
ulimits:
nofile:
soft: 4096
hard: 8192
volumes:
pb_data: # Docker-managed volume for persistence
+4 -5
View File
@@ -1,3 +1,5 @@
version: '3.9'
services:
checkcle:
image: operacle/checkcle:latest
@@ -6,11 +8,8 @@ services:
ports:
- "8090:8090" # Web Application
volumes:
- pb_data:/app/pb_data # Ensure persistent data across rebuilds
- /opt/pb_data:/mnt/pb_data # Host directory mapped to container path
ulimits:
nofile:
soft: 4096
hard: 8192
volumes:
pb_data: # Docker-managed volume for data persistence
hard: 8192