SHA-462; Starting N8N workflow configuration
Browse files- .idea/.gitignore +8 -0
- .idea/workspace.xml +8 -0
- docker-compose.yml +13 -0
- main.py +1 -1
.idea/.gitignore
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Default ignored files
|
2 |
+
/shelf/
|
3 |
+
/workspace.xml
|
4 |
+
# Editor-based HTTP Client requests
|
5 |
+
/httpRequests/
|
6 |
+
# Datasource local storage ignored files
|
7 |
+
/dataSources/
|
8 |
+
/dataSources.local.xml
|
.idea/workspace.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="PropertiesComponent">{
|
4 |
+
"keyToString": {
|
5 |
+
"settings.editor.selected.configurable": "advanced.settings"
|
6 |
+
}
|
7 |
+
}</component>
|
8 |
+
</project>
|
docker-compose.yml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# docker-compose.yml
|
2 |
+
services:
|
3 |
+
api:
|
4 |
+
image: kai-api
|
5 |
+
ports:
|
6 |
+
- "8000:8000"
|
7 |
+
command: uvicorn main:app --host 0.0.0.0
|
8 |
+
n8n:
|
9 |
+
image: n8nio/n8n:1.101.1
|
10 |
+
ports:
|
11 |
+
- "5678:5678"
|
12 |
+
depends_on:
|
13 |
+
- api
|
main.py
CHANGED
@@ -40,4 +40,4 @@ def health_check():
|
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
import uvicorn
|
43 |
-
uvicorn.run(main, host="
|
|
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
import uvicorn
|
43 |
+
uvicorn.run(main, host="127.0.0.1", port=8000)
|