Docker Compose
Deploy Matter AI in your own infrastructure using Docker Compose
This guide walks you through deploying Matter AI in your own infrastructure using Docker Compose, which is ideal for smaller deployments or testing environments.
Prerequisites
You need to have private registery docker credentials. Contact Matter AI team at support@matterai.dev
- A server with Docker and Docker Compose installed
- GitHub App credentials (see Create Your Own GitHub App)
- Minimum system requirements:
- 1 CPU cores
- 2GB RAM
- 10GB storage
- Domain name with SSL certificate (for webhook endpoints)
Step 1: Download the docker-compose repository
Sample Docker Compose file:
Step 2: Configure Proxy for Backend APIs (Default works, no Change needed)
This nginx proxy is used to enables routing to backend APIs via frontend security.
Here’s the default Nginx configuration:
Step 3: Deploy Matter AI
Step 4: Visit the UI and create a new account
Access the Matter AI web interface at http://your-domain.com
(or http://localhost:3000
if not using a reverse proxy)
Maintenance and Updates
Updating Matter AI
To update to the latest version of Matter AI:
Backup and Restore
It’s recommended to regularly backup your PostgreSQL database:
Troubleshooting
Common Issues
-
Webhook not receiving events
- Verify your webhook URL is correctly configured in your GitHub App
- Check that your server is accessible from the internet
- Ensure your SSL certificate is valid
-
Database connection issues
- Check the PostgreSQL logs:
docker-compose logs postgres
- Verify the database credentials in your
.env
file
- Check the PostgreSQL logs:
-
API service not starting
- Check the API logs:
docker-compose logs api
- Verify all required environment variables are set correctly
- Check the API logs: