This project is an implementation of a stack based on Docker (docker-compose) using MongoDB, PostgreSQL, Neo4j, Node.js, Flask, Jupyter, and more.
- MongoDB: NoSQL database
- PostgreSQL: Relational database
- NodeJS API: Build DB structure and create API
- Flask: Micro web framework for Python
- Jupyter: Interactive computing environment
- Streamlit: Web app framework for Machine Learning and Data Science
- Ollama: AI model hosting and management
- Ollama WebUI: Web interface for managing AI models
- Neo4j: Graph database (newly added)
# Clone the repository
git clone https://github.com/hyper07/apan-project.git
# Move to the project directory
cd apan-project/
# Build and run the containers
docker-compose up -d
# Stop and remove the containers
docker-compose down
- Connection String:
from pymongo import MongoClient client = MongoClient('mongodb://admin:PassW0rd@apan-mongo:27017/')
- Web Interface (PgAdmin): http://localhost:5080
- Connection Details:
Hostname: apan-postgres Port: 5432 Database: db Username: admin Password: PassW0rd
- Web Interface: http://localhost:8899
- Web Interface: http://localhost:5010
- Web Sample Form: http://localhost:5010/form
- Web Interface: http://localhost:18501
- API Endpoint: http://localhost:37869
docker exec -ti apan-ollama ollama pull llama3.2:1b
# or
docker exec -ti apan-ollama ollama pull qwen2.5-coder
- Web Interface: http://localhost:38080
To download a model, use the following command:
docker exec -ti apan-ollama ollama pull <model-name>
For example:
docker exec -ti apan-ollama ollama pull llama3.2:1b
docker exec -ti apan-ollama ollama pull qwen2.5-coder
- Open the Ollama WebUI at http://localhost:38080.
- Navigate to the "Models" section.
- Select the desired model from the list or upload a custom model.
- Save the configuration and start using the selected model.
- Web Interface: http://localhost:7874
- Bolt Protocol:
bolt://localhost:7887
- Connection Details:
Username: neo4j Password: password
- Web Interface: http://localhost:9080
- Web Interface: http://localhost:8081
- API Document: http://localhost:3100/api/v1/api-docs
For detailed instructions on how to access and interact with the databases
- How to access dbs: How To Access.
- Docker Network: All services are connected via a custom Docker network
apan-net
. - Volumes: Persistent data storage is managed using Docker volumes.
For more detailed information on each service, please refer to the respective documentation.