Deploying Prisme.ai with Docker
Detailed guide for deploying and managing Prisme.ai locally or on-premise using Docker and docker-compose.
Docker provides an effective solution for deploying Prisme.ai in local or on-premise environments. This guide covers everything you need to quickly deploy and manage Prisme.ai using Docker Compose.
Prerequisites
Ensure your system meets the following prerequisites:
- Docker (version 20.10+) and Docker Compose installed.
- Minimum hardware: 4 vCPU, 16 GB RAM, 50 GB disk space recommended.
- Git installed for cloning the repository.
- DNS setup: Local wildcard DNS (
*.pages.local.prisme.ai
) pointed to Docker host machine.
Docker Environment Setup
Follow these steps to set up your local Docker environment for Prisme.ai:
Clone Repository
Clone the Prisme.ai repository from GitLab:
Configure Environment Variables
Edit the .env
file at the root of the project to configure your Docker environment:
Example .env
configuration:
Ensure DNS entries (studio.local.prisme.ai
, api.local.prisme.ai
) point to your Docker host IP.
Start Prisme.ai with Docker Compose
Launch Prisme.ai and its dependencies using Docker Compose:
This command will start all necessary Prisme.ai microservices and databases (MongoDB, Redis, Elasticsearch).
Verify Deployment
Check running containers:
Verify logs for issues:
Access Prisme.ai Studio
Visit the URL defined in your .env
file (e.g., http://studio.local.prisme.ai:3000
) to access the Prisme.ai Studio.
Docker Best Practices
Resource Management
- Monitor resource usage regularly.
- Adjust container resource limits using Docker Compose configurations.
Persistent Storage
- Ensure volumes are correctly configured for persistent storage.
- Regularly back up Docker volumes.
Network Configuration
- Utilize dedicated Docker networks for Prisme.ai.
- Configure proper DNS records for easier access and testing.
Security Measures
- Regularly update Docker and images.
- Limit container privileges and exposure to the host system.
Common Commands & Troubleshooting
Next Steps
Was this page helpful?