8000 GitHub - hyper07/apan-project: To start your flask project
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hyper07/apan-project

Repository files navigation

APAN All-in-One Docker Stack

This project is an implementation of a stack based on Docker (docker-compose) using MongoDB, PostgreSQL, Neo4j, Node.js, Flask, Jupyter, and more.

Features

  • 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)

Building & Running

# 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

Accessing Services

MongoDB

  • Connection String:
    from pymongo import MongoClient
    client = MongoClient('mongodb://admin:PassW0rd@apan-mongo:27017/')

PostgreSQL

  • Web Interface (PgAdmin): http://localhost:5080
  • Connection Details:
    Hostname: apan-postgres
    Port: 5432
    Database: db
    Username: admin
    Password: PassW0rd
    

Jupyter

Flask App

Streamlit App

steamlit application

Ollama

Download the Ollama model

docker exec -ti apan-ollama ollama pull llama3.2:1b
# or 
docker exec -ti apan-ollama ollama pull qwen2.5-coder

Ollama WebUI

select model

Download LLM Models

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

download model

Select a Model in the WebUI

  1. Open the Ollama WebUI at http://localhost:38080.
  2. Navigate to the "Models" section.
  3. Select the desired model from the list or upload a custom model.
  4. Save the configuration and start using the selected model.

Neo4j

  • Web Interface: http://localhost:7874
  • Bolt Protocol: bolt://localhost:7887
  • Connection Details:
    Username: neo4j
    Password: password
    

Adminer

Mongo Express

NodeJS API document

HOW TO ACCESS DATABASE AND API

For detailed instructions on how to access and interact with the databases

Data Migration with nodejs for postgresql

data migration

Additional Information

  • 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.

About

To start your flask project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0