-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 904 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 904 Bytes
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
services:
db:
image: pgvector/pgvector:pg16
restart: always
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker-data/db:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: example
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
volumes:
- ./docker-data/redis:/root/redis
- ./docker-data/redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_PASSWORD=my-password
- REDIS_PORT=6379
- REDIS_DATABASES=16
ollama:
image: ollama/ollama:latest
profiles: ["dev"]
ports:
- 11434:11434
volumes:
- .:/code
- ./docker-data/ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: always
environment:
- OLLAMA_KEEP_ALIVE=24h
- OLLAMA_HOST=0.0.0.0