{"id":28471464,"url":"https://github.com/ryaneggz/docker-n8n-pgvector","last_synced_at":"2026-05-06T11:35:52.155Z","repository":{"id":296638305,"uuid":"994005382","full_name":"ryaneggz/docker-n8n-pgvector","owner":"ryaneggz","description":"Docker Configuration for local and Remote Deployment via Supabase","archived":false,"fork":false,"pushed_at":"2025-06-01T03:09:51.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-01T21:37:09.010Z","etag":null,"topics":["ai","docker","docker-compose","n8n","pgvector","supabase"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryaneggz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-01T01:39:59.000Z","updated_at":"2025-06-01T03:09:55.000Z","dependencies_parsed_at":"2025-06-01T12:34:19.131Z","dependency_job_id":"5a1d8fd2-e5d7-4cb9-b9b3-b7f5c671f1c6","html_url":"https://github.com/ryaneggz/docker-n8n-pgvector","commit_stats":null,"previous_names":["ryaneggz/docker-n8n-pgvector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryaneggz/docker-n8n-pgvector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryaneggz%2Fdocker-n8n-pgvector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryaneggz%2Fdocker-n8n-pgvector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryaneggz%2Fdocker-n8n-pgvector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryaneggz%2Fdocker-n8n-pgvector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryaneggz","download_url":"https://codeload.github.com/ryaneggz/docker-n8n-pgvector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryaneggz%2Fdocker-n8n-pgvector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32692238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","docker","docker-compose","n8n","pgvector","supabase"],"created_at":"2025-06-07T10:40:28.187Z","updated_at":"2026-05-06T11:35:52.106Z","avatar_url":"https://github.com/ryaneggz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# n8n with PostgreSQL and pgvector\n\nA Docker Compose setup for running [n8n](https://n8n.io/) (workflow automation platform) with PostgreSQL database enhanced with [pgvector](https://github.com/pgvector/pgvector) extension for vector similarity search and AI/ML workflows.\n\n## Features\n\n- 🚀 **n8n Workflow Automation**: Visual workflow builder for automating tasks and integrations\n- 🐘 **PostgreSQL with pgvector**: Vector database support for AI/ML use cases\n- 🐳 **Docker Compose**: Easy deployment and orchestration\n- 🔒 **Environment-based Configuration**: Secure configuration management\n- 📦 **Persistent Data**: Volume mounting for data persistence\n\n## Prerequisites\n\n- Docker and Docker Compose installed\n- Basic understanding of n8n workflows\n- PostgreSQL knowledge (optional but helpful)\n\n## Quick Start\n\n1. **Clone the repository**\n   ```bash\n   git clone \u003cyour-repo-url\u003e\n   cd n8n-pgvector\n   ```\n\n2. **Configure environment variables**\n   ```bash\n   cp .example.env .env\n   # Edit .env file with your configuration\n   ```\n\n3. **Start the services**\n   ```bash\n   docker-compose up -d\n   ```\n\n4. **Access n8n**\n   Open your browser and navigate to `http://localhost:5678`\n\n## Configuration\n\n### Environment Variables\n\nCopy `.example.env` to `.env` and configure the following variables:\n\n```env\n# Database Configuration\nDB_POSTGRESDB_HOST=postgres\nDB_POSTGRESDB_PORT=5432\nDB_POSTGRESDB_DATABASE=n8n\nDB_POSTGRESDB_USER=n8n\nDB_POSTGRESDB_PASSWORD=your_secure_password\n\n# n8n Configuration\nN8N_ENCRYPTION_KEY=your_encryption_key\n```\n\n### n8n Configuration\n\nThe setup includes the following n8n configurations:\n- **Host**: Configured for `n8n.enso.sh` (update as needed)\n- **Webhook URL**: `https://n8n.enso.sh/`\n- **Runners**: Enabled for improved performance\n- **Workflow Management**: Active for persistence\n\n### Optional Configuration\n\nUncomment and configure these options in `docker-compose.yml` as needed:\n\n- **HTTP Basic Auth**: Add basic authentication to n8n\n- **Timezone**: Set your preferred timezone (default: America/Chicago)\n\n## PostgreSQL with pgvector\n\nThis setup uses the `pgvector/pgvector:pg16` image which includes:\n- PostgreSQL 16\n- pgvector extension for vector operations\n- Support for similarity search and embeddings\n\n### Enabling PostgreSQL\n\nTo enable the PostgreSQL service:\n\n1. Uncomment the `postgres` service section in `docker-compose.yml`\n2. Uncomment the `depends_on` section in the n8n service\n3. Update your `.env` file with database credentials\n\n## Usage\n\n### Starting Services\n\n```bash\n# Start all services\ndocker-compose up -d\n\n# View logs\ndocker-compose logs -f\n\n# Stop services\ndocker-compose down\n```\n\n### Accessing Services\n\n- **n8n Interface**: `http://localhost:5678`\n- **PostgreSQL**: `localhost:5432` (when enabled)\n\n### Data Persistence\n\nData is persisted using Docker volumes:\n- `n8n_data`: n8n configuration and workflows\n- `n8n-postgres-data`: PostgreSQL data (when enabled)\n\n## Vector Operations with pgvector\n\nWith pgvector enabled, you can:\n- Store and query vector embeddings\n- Perform similarity searches\n- Build AI/ML workflows with semantic search capabilities\n\nExample use cases:\n- Document similarity search\n- Recommendation systems\n- Semantic text analysis\n- Image similarity matching\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Port conflicts**: Ensure ports 5678 and 5432 are not in use\n2. **Permission issues**: Check Docker permissions and file ownership\n3. **Database connection**: Verify PostgreSQL service is running and accessible\n\n### Logs\n\nCheck service logs for debugging:\n```bash\n# n8n logs\ndocker-compose logs n8n\n\n# PostgreSQL logs (if enabled)\ndocker-compose logs postgres\n```\n\n## Development\n\nFor development purposes:\n1. Mount additional volumes for custom nodes or configurations\n2. Use environment variables for different deployment stages\n3. Consider using Docker networks for service isolation\n\n## Security Considerations\n\n- Change default passwords\n- Use strong encryption keys\n- Enable HTTPS in production\n- Configure firewall rules appropriately\n- Regularly update Docker images\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Test thoroughly\n5. Submit a pull request\n\n## License\n\n[Add your license information here]\n\n## Support\n\n- [n8n Documentation](https://docs.n8n.io/)\n- [pgvector Documentation](https://github.com/pgvector/pgvector)\n- [Docker Compose Documentation](https://docs.docker.com/compose/)\n\n---\n\n**Note**: This setup is configured for the domain `n8n.enso.sh`. Update the host and webhook URL configurations in `docker-compose.yml` to match your deployment environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryaneggz%2Fdocker-n8n-pgvector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryaneggz%2Fdocker-n8n-pgvector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryaneggz%2Fdocker-n8n-pgvector/lists"}