Docker Deployment
Implementing ScanStock infrastructure using high-performance container orchestration.
2️⃣ Create docker-compose.yml
Create a docker-compose.yml file in your project directory. This file defines the ScanStock service and its dependencies.
services:
scanstock:
image: ghcr.io/jcp-vision/scanstock:latest
container_name: scanstock
restart: unless-stopped
ports:
- "8000:8000"
env_file:
- .env
volumes:
- scanstock_data:/var/lib/jcp-vision
volumes:
scanstock_data:
3️⃣ Start ScanStock
Initialize the deployment by running the following command in your terminal. This will pull the latest container image and start the application in the background.
docker compose up -d
Persistent Storage: ScanStock automatically creates a persistent volume (
scanstock_data) to store your database and license information. This ensures your data remains safe even if the container is restarted or updated.
4️⃣ Access the Application
Open your browser and navigate to:
http://localhost:8000
Login using the administrator credentials defined in your .env file.