-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (48 loc) · 1.01 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
version: '3.8'
services:
ollama:
image: ollama/ollama:latest
mem_limit: 3g
cpus: 4
entrypoint: sh -c "ollama serve && ollama pull tinyllama"
networks:
- ollama-docker
volumes:
- /private/var/services/ollama:/root/.ollama
ports:
- 11434:11434
db:
image: postgres:alpine3.19
shm_size: 128mb
restart: always
networks:
- ollama-docker
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_USER: ollama
POSTGRES_PASSWORD: ollama
POSTGRES_DB: ollamadb
ports:
- 5432:5432
langfuse:
image: ghcr.io/langfuse/langfuse:latest
platform: linux/amd64
networks:
- ollama-docker
depends_on:
# - ollama
- db
environment:
DATABASE_URL: postgresql://ollama:ollama@db:5432/ollamadb
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: mysecret
SALT: mysalt
ports:
- 3000:3000
volumes:
db:
driver: local
networks:
ollama-docker:
external: false