-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
56 lines (53 loc) · 1.09 KB
/
docker-compose.yaml
File metadata and controls
56 lines (53 loc) · 1.09 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
services:
database:
image: postgres:15
container_name: tday_db
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypass
POSTGRES_DB: mydb
volumes:
- postgres_data:/var/lib/postgresql/data
ollama:
image: ollama/ollama:latest
container_name: tday_ollama
restart: always
gpus: all
environment:
OLLAMA_HOST: 0.0.0.0:11434
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 20s
timeout: 10s
retries: 5
volumes:
- ollama_data:/root/.ollama
tday:
build:
context: .
dockerfile: dockerfile
image: tday:latest
container_name: tday
restart: always
ports:
- "2525:3000"
env_file:
- .env.docker
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
depends_on:
database:
condition: service_healthy
ollama:
condition: service_healthy
volumes:
postgres_data:
ollama_data: