diff --git a/README.md b/README.md index ee78502..6cd276b 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ This repo uses AI and the wonderful Notion to enable you to add anything on the - [Installing](#installing) - [Prerequisites](#prerequisites) - [Love to try it?](#love-to-try-it) + - [Docker-Compose](#docker-compose) - [Common Issues](#common-issues) - [Roadmap](#roadmap) @@ -47,6 +48,7 @@ On to the chrome extension settings, you can get your needed token_v2! It is nec TokenV2 is updated automatically when it changes (it occurs when you log out of notion or it expires), so Notion AI My Mind should always work. ☻ You can also change it manually of course. *If you enter a clarifai api key, clarifai will be used. (Clarifai is cloud base, non gpu dependant, image is tagged on clarifai's servers) if you leave it blank it will use local tensorflow (will use cores of your server but image will be processed locally) + ### Love to try it? To install the python server, fire up your linux distributed machine and run this command. @@ -73,7 +75,7 @@ cd NotionAI-MyMind && pip -r install requirements.txt python server.py \\Python 3.5 or up needed. ``` - Step 4. Create Notion Database. -It must have this properties selected and add more properties if you want, but the selected ones must exist. (AITagsText and URL) +It must have this properties selected and add more properties if you want, but the selected ones must exist. (AITagsText (text) and URL (url property)) ![Notion Screen](/doc/notion-database-howto.jpg) - Step 5. Go to your servers IP and fill the data needed (Token, Notion Database URL and clarifai api key). @@ -89,5 +91,25 @@ It must have this properties selected and add more properties if you want, but t - Step 8. ENJOY! +## Docker-Compose +You can run the server on docker container. Change the [SERVER_PORT] variable with the desired port to run the server with. Then simply call `docker-compose up -d`. + +```yaml +version: '3.4' + +services: + app: + image: elblogbruno/notion-ai-mymind:latest + ports: + - [SERVER_PORT]:5000 +``` + +When a new update is available, you can call : + +``` +docker-compose stop notionai-mymind +docker-compose up -d notionai-mymind +``` + ## Roadmap - You can check the roadmap here: https://github.com/elblogbruno/NotionAI-MyMind/projects/1