-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
42 lines (40 loc) · 844 Bytes
/
Copy pathcompose.yaml
File metadata and controls
42 lines (40 loc) · 844 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
41
42
services:
ollama:
build:
context: ./ollama
container_name: ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
restart: unless-stopped
postgres:
image: 'pgvector/pgvector:pg16'
container_name: postgresx
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql
- ./postgres/init:/docker-entrypoint-initdb.d:ro
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER}" ]
interval: 10s
timeout: 5s
retries: 5
env_file:
- .env
roleplay-bot:
build:
context: .
dockerfile: Dockerfile
container_name: pierrot-bot
depends_on:
- ollama
- postgres
env_file:
- .env
restart: unless-stopped
volumes:
ollama_data:
postgres_data: