-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-assistant.yml
More file actions
87 lines (81 loc) · 2.1 KB
/
docker-compose-assistant.yml
File metadata and controls
87 lines (81 loc) · 2.1 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
services:
oasm-assistant:
container_name: oasm-assistant
image: oasm/oasm-assistant:${IMAGE_TAG:-latest}
restart: on-failure
env_file:
- .env
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_USER=${POSTGRES_USERNAME:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=${POSTGRES_ASSISTANT_DB:-oasm_assistant}
- REDIS_URL=${REDIS_URL}
- ASSISTANT_HOST=${ASSISTANT_HOST:-0.0.0.0}
- ASSISTANT_PORT=${ASSISTANT_PORT:-8000}
- SEARXNG_URL=${SEARXNG_URL}
- SEARXNG_SECRET=${SEARXNG_SECRET}
- OASM_CORE_API_URL=http://core-api:${PORT:-6276}
- OASM_CLOUD_APIKEY=${OASM_CLOUD_APIKEY}
volumes:
- assistant-logs:/app/logs
- assistant-knowledge:/app/knowledge
networks:
- oasm
oasm-searxng:
container_name: oasm-searxng
image: docker.io/searxng/searxng:latest
restart: unless-stopped
volumes:
- searxng-data:/var/cache/searxng:rw
configs:
- source: searxng_settings
target: /etc/searxng/settings.yml
environment:
- SEARXNG_BASE_URL=http://localhost:8080/
- SEARXNG_SECRET=${SEARXNG_SECRET:-changeme}
networks:
- oasm
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
volumes:
assistant-data:
assistant-logs:
assistant-knowledge:
searxng-data:
networks:
oasm:
external: true
name: oasm_net
configs:
searxng_settings:
content: |
use_default_settings: true
server:
secret_key: "ea010376560297c7483fbe17da3933a653d319a603f9bcd66f0cd4b471bfdba7"
limiter: false
image_proxy: false
search:
formats:
- html
- json
searxng_limiter:
content: |
[general]
enable_limiter = false
[botdetection]
# those are just examples, as the limiter is disabled
ip_limit = 1000
[botdetection.ip_lists]
pass_ip = []
block_ip = []