Deploy Stack
Deploying Chatty AI stack via Portainer.
Stack Deployment (Vendor-Managed)
This page explains what happens when vendor deploys Chatty AI via Portainer.
Overview
Customer does NOT perform these steps - vendor handles deployment.
This documentation is for transparency and understanding.
Vendor Deployment Process
Step 1: Verify Edge Agent Connection
Vendor confirms Edge Agent is connected:
- Edge Agent appears in Portainer UI
- Connection status: Connected
- Environment details visible
Step 2: Prepare Stack Configuration
Vendor prepares docker-compose stack with:
- Customer's .env file
- Certificate volume mappings
- Network configuration
- Image versions
Step 3: Deploy Stack
Vendor deploys via Portainer UI:
- Navigate to customer's Edge Agent environment
- Go to Stacks → Add Stack
- Name:
chatty-app - Upload docker-compose.yaml
- Load .env file
- Configure volume mappings:
/opt/chatty-app/certs→ Certificate volumes/opt/chatty-app/data→ Data volumes
- Click Deploy Stack
Step 4: Monitor Deployment
Vendor monitors container startup:
- All 11 containers starting
- No error logs
- Health checks passing
- Services connecting
Expected containers:
- nginx
- chattyai
- db (PostgreSQL)
- qdrant
- pipelines
- n8n
- chattydatabases
- chattydatabases-engine
- chattydatabases-ibis
- chattydatabases-ai-service
- chattydatabases-bootstrap
Step 5: Verify Services
Vendor verifies:
- Database initialized
- Qdrant running
- Nginx serving HTTPS
- All services healthy
Step 6: Notify Customer
Vendor notifies customer deployment is complete:
Email includes:
- Deployment status: Complete
- Access URLs:
- Chatty AI:
https://chat.example.com - n8n:
https://n8n.example.com - Databases:
https://databases.example.com
- Chatty AI:
- Admin credentials
- Next steps for validation
What Customer Sees
During deployment, customer can monitor via Docker:
# Watch containers starting
watch docker ps
# View logs
docker logs -f chattyai
docker logs -f nginx
docker logs -f db
Customer will see:
- Containers being created
- Images being pulled
- Services starting up
- Log messages
Deployment Timeline
Typical deployment takes 10-15 minutes:
| Phase | Duration | What Happens |
|---|---|---|
| Image Pull | 5-8 min | Download Docker images |
| Container Start | 2-3 min | Start all containers |
| Database Init | 1-2 min | Initialize PostgreSQL |
| Service Ready | 1-2 min | All services healthy |
Troubleshooting (Vendor)
Containers Won't Start
Check:
- Certificate paths correct
- .env file complete
- Sufficient resources
- No port conflicts
Database Connection Errors
Verify:
- DB_PASSWORD correct in .env
- PostgreSQL container running
- Network connectivity
Certificate Issues
Confirm:
- Certificates in correct locations
- Correct permissions (600 for privkey)
- Valid certificate chain
Post-Deployment
After successful deployment:
- Vendor performs initial validation
- Customer receives access details
- Customer performs deployment verification
- Customer begins using Chatty AI
Customer Responsibilities
After deployment, customer manages:
- Monitoring service health
- Backing up data
- Renewing SSL certificates
- Reporting issues to vendor
Vendor manages:
- Stack updates
- Version upgrades
- Configuration changes
- Troubleshooting complex issues
Re-deployment
If re-deployment needed:
Vendor can:
- Update stack via Portainer
- Change environment variables
- Restart services
- Roll back to previous version
Customer does NOT need to reinstall Edge Agent.
Next Steps
After vendor deploys stack:
- Complete Post-Installation Validation
- Begin using Chatty AI
Support
For deployment issues:
- Email: support@chatty-ai.ai
- Include: Error messages, container logs, deployment timeline