-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblinko-with-ollama-compose.yml
More file actions
61 lines (58 loc) · 1.46 KB
/
Copy pathblinko-with-ollama-compose.yml
File metadata and controls
61 lines (58 loc) · 1.46 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
services:
blinko:
image: blinkospace/blinko:latest
container_name: blinko
environment:
NODE_ENV: production
NEXTAUTH_URL: http://localhost:1111
NEXT_PUBLIC_BASE_URL: https://blinko.your.domain
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
DATABASE_URL: postgresql://postgres:blinko@postgres:5432/postgres
depends_on:
postgres:
condition: service_healthy
volumes:
- ./data/blinko:/app/.blinko
restart: unless-stopped
ports:
- 127.0.0.1:1111:1111
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:1111/"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
networks:
- blinko-network
postgres:
image: postgres:14
container_name: blinko-postgres
restart: unless-stopped
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: blinko
TZ: Asia/Shanghai
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
interval: 5s
timeout: 10s
retries: 5
networks:
- blinko-network
ollama:
container_name: ollama
image: ollama/ollama:latest
restart: unless-stopped
environment:
- OLLAMA_HOST=0.0.0.0
- OLLAMA_KEEP_ALIVE=1h
volumes:
- ./ollama:/root/.ollama
networks:
- blinko-network
networks:
blinko-network:
driver: bridge