-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (63 loc) · 1.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (63 loc) · 1.39 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
version: '2'
services:
pythonsimo:
build:
context: .
dockerfile: Dockerfile_pythonsimo
expose:
- "8888"
links:
- redis
restart: always
sandbox:
build:
context: .
dockerfile: Dockerfile_sandbox
expose:
- "3456"
restart: always
simojs:
links:
- redis
- pythonsimo
- influxdb
- sandbox
build: .
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- "./simojs-data/:/simojs-data"
- "./templates/:/templates"
restart: always
ports:
- "127.0.0.1:9229:9229"
# llama is excluded from the default `docker compose up` via the profile.
# To start it, place a model file under ./models/ and run:
# docker compose --profile llama up
# Used by !simogpt and !simoq features.
llama:
image: ghcr.io/ggml-org/llama.cpp:server
command: -m /models/viking-13b-q5_k_m.gguf -c 128 --host 0.0.0.0 --port 8111 --threads 8 --mlock
volumes:
- "./models:/models"
ports:
- "8111:8111"
restart: always
ulimits:
memlock:
soft: -1
hard: -1
profiles:
- llama
redis:
restart: always
build:
context: .
dockerfile: Dockerfile_redis
volumes:
- "./redis-data/:/redis-data"
influxdb:
image: influxdb:1.8
container_name: influxdb
volumes:
- "./influxdb_data:/var/lib/influxdb"