-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·178 lines (166 loc) · 6.06 KB
/
docker-compose.yml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
services:
open-webui:
image: ghcr.io/open-webui/open-webui
container_name: open-webui
extra_hosts:
- host.docker.internal:host-gateway
ports:
- 3000:8080
environment:
- WEBUI_AUTH=False
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/postgres
- RAG_WEB_SEARCH_ENGINE=searxng
- SEARXNG_QUERY_URL=http://host.docker.internal:8080/search?q=<query>
# Comment out below if not using stable-diffusion-webui
- AUTOMATIC1111_BASE_URL=http://host.docker.internal:7860/
- ENABLE_IMAGE_GENERATION=True
volumes:
- open-webui:/app/backend/data
depends_on:
- postgres
# Comment out the ollama service if you are running directly on your host machine (e.g. to take advantage of Apple silicon)
ollama:
image: ollama/ollama
container_name: ollama
ports:
- 11434:11434
volumes:
- ollama:/root/.ollama
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
postgres:
image: postgres:14
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- postgres-db:/var/lib/postgresql/data
- ./langfuse/init-langfuse-db.sql:/docker-entrypoint-initdb.d/init-langfuse-db.sql
healthcheck:
test: ["CMD", "pg_isready","-U", "postgres"]
restart: always
pipelines:
image: ghcr.io/open-webui/pipelines:main
ports:
- 9099:9099
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- pipelines:/app/pipelines
langfuse:
image: langfuse/langfuse:2
depends_on:
postgres:
condition: service_healthy
ports:
- "3001:3000"
environment:
- DATABASE_URL=postgresql://langfuse:langfuse@postgres:5432/langfuse
- NEXTAUTH_SECRET=mysecret
- SALT=mysalt
- ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000 # generate via `openssl rand -hex 32`
- NEXTAUTH_URL=http://localhost:3000
- TELEMETRY_ENABLED=${TELEMETRY_ENABLED:-true}
- LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES=${LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES:-false}
- LANGFUSE_INIT_ORG_ID=${LANGFUSE_INIT_ORG_ID:-my-org}
- LANGFUSE_INIT_ORG_NAME=${LANGFUSE_INIT_ORG_NAME:-My Org}
- LANGFUSE_INIT_PROJECT_ID=${LANGFUSE_INIT_PROJECT_ID:-my-project}
- LANGFUSE_INIT_PROJECT_NAME=${LANGFUSE_INIT_PROJECT_NAME:-My Project}
- LANGFUSE_INIT_PROJECT_PUBLIC_KEY=${LANGFUSE_INIT_PROJECT_PUBLIC_KEY:-lf_pk_1234567890}
- LANGFUSE_INIT_PROJECT_SECRET_KEY=${LANGFUSE_INIT_PROJECT_SECRET_KEY:-lf_sk_1234567890}
- LANGFUSE_INIT_USER_EMAIL=${LANGFUSE_INIT_USER_EMAIL:[email protected]}
- LANGFUSE_INIT_USER_NAME=${LANGFUSE_INIT_USER_NAME:-langfuse}
- LANGFUSE_INIT_USER_PASSWORD=${LANGFUSE_INIT_USER_PASSWORD:-langfuse}
searxng:
image: searxng/searxng:latest
container_name: searxng
ports:
- 8080:8080
volumes:
- ./searxng:/etc/searxng
jupyter:
build:
context: ./jupyter
ports:
- 8888:8888
volumes:
- ./data:/workspace/data
- ./jupyter/notebooks/:/workspace/notebooks/
- ~/.cache/:/root/.cache/
opensearch: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/)
image: opensearchproject/opensearch:latest # Specifying the latest available image - modify if you want a specific version
environment:
# - OPENSEARCH_INITIAL_ADMIN_PASSWORD=El@sticSearch123
- DISABLE_SECURITY_PLUGIN=true
- DISABLE_INSTALL_DEMO_CONFIG=true
- discovery.type=single-node
- bootstrap.memory_lock=true # Disable JVM heap memory swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx1g" # Set min and max JVM heap sizes to at least 50% of system RAM
ulimits:
memlock:
soft: -1 # Set memlock to unlimited (no soft or hard limit)
hard: -1
nofile:
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536
hard: 65536
volumes:
- opensearch-data:/usr/share/opensearch/data # Creates volume called opensearch-data1 and mounts it to the container
ports:
- 9200:9200 # REST API
- 9600:9600 # Performance Analyzer
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:latest # Make sure the version of opensearch-dashboards matches the version of opensearch installed on other nodes
ports:
- 5601:5601 # Map host port 5601 to container port 5601
expose:
- "5601" # Expose port 5601 for web access to OpenSearch Dashboards
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]' # Define the OpenSearch nodes that OpenSearch Dashboards will query
DISABLE_SECURITY_DASHBOARDS_PLUGIN: true
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:8.16.1 #8.12.0 #7.17.16
# restart: always
# environment:
# - xpack.security.enabled=false
# - discovery.type=single-node
# - telemetry.optIn=false
# ulimits:
# memlock:
# soft: -1
# hard: -1
# nofile:
# soft: 65536
# hard: 65536
# volumes:
# - elasticsearch-data:/usr/share/elasticsearch/data
# ports:
# - 9200:9200
# kibana:
# image: docker.elastic.co/kibana/kibana:8.16.1 #8.12.0 #7.17.16
# restart: always
# environment:
# - ELASTICSEARCH_HOSTS=http://elasticsearch:9200 # address of elasticsearch docker container which kibana will connect
# ports:
# - 5601:5601
# depends_on:
# - elasticsearch
# crawler:
# image: docker.elastic.co/integrations/crawler:${CRAWLER_VERSION:-0.2.0}
# container_name: crawler
# volumes:
# - ./crawler/config:/app/config
# stdin_open: true # Equivalent to -i
# tty: true # kibana will start when elasticsearch has started
volumes:
ollama:
open-webui:
pipelines:
postgres-db:
elasticsearch-data:
opensearch-data: