-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
131 lines (122 loc) · 3.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
131 lines (122 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
volumes:
jupyter_data:
postgres_storage:
n8n_storage:
qdrant_storage:
networks:
ai01:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16
x-n8n: &service-n8n
image: n8nio/n8n:latest
networks: ["ai01"]
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_USER=${POSTGRES_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
- N8N_DIAGNOSTICS_ENABLED=false
- N8N_PERSONALIZATION_ENABLED=false
- N8N_ENCRYPTION_KEY
- N8N_USER_MANAGEMENT_JWT_SECRET
- OLLAMA_HOST=host.docker.internal:11434
services:
jupyter:
build: jupyter/
networks: ["ai01"]
ports:
- "8888:8888"
volumes:
- jupyter_data:/home/jovyan
- ./notebooks:/home/jovyan/work
- ./shared:/home/jovyan/shared
environment:
- JUPYTER_ENABLE_LAB=yes
- JUPYTER_TOKEN=${JUPYTER_TOKEN}
command: start-notebook.py --NotebookApp.token='${JUPYTER_TOKEN}'
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888/api"]
interval: 30s
timeout: 10s
retries: 3
unstructured:
image: quay.io/unstructured-io/unstructured-api:latest
networks: ["ai01"]
ports:
- "8000:8000"
volumes:
- ./shared:/home/unstructured/shared
command: --port 8000 --host 0.0.0.0
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
postgres:
image: postgres:16-alpine
hostname: postgres
networks: ["ai01"]
restart: unless-stopped
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- postgres_storage:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}",
]
interval: 5s
timeout: 5s
retries: 10
n8n-import:
<<: *service-n8n
hostname: n8n-import
entrypoint: /bin/sh
command:
- "-c"
- "n8n import:credentials --separate --input=/backup/credentials && n8n import:workflow --separate --input=/backup/workflows"
volumes:
- ./n8n/backup:/backup
depends_on:
postgres:
condition: service_healthy
n8n:
<<: *service-n8n
hostname: n8n
restart: unless-stopped
ports:
- 5678:5678
volumes:
- n8n_storage:/home/node/.n8n
- ./n8n/backup:/backup
- ./shared:/data/shared
depends_on:
postgres:
condition: service_healthy
n8n-import:
condition: service_completed_successfully
qdrant:
image: qdrant/qdrant
hostname: qdrant
networks: ["ai01"]
restart: unless-stopped
ports:
- 6333:6333
volumes:
- qdrant_storage:/qdrant/storage
lobe-chat:
image: lobehub/lobe-chat
container_name: lobe-chat
restart: always
ports:
- "3210:3210"
environment:
- ACCESS_CODE=${LOBE_ACCESS_CODE}