-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1.07 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
services:
# ui:
# build:
# context: .
# dockerfile: ./Dockerfile
# image: "locallm-webui"
# container_name: "locallm-webui"
# ports:
# - "3000:3000"
# restart: unless-stopped
# depends_on:
# - postgres
# extra_hosts:
# - "host.docker.internal:host-gateway"
postgres:
hostname: postgres
build:
context: .
dockerfile: ./.local/cluster/postgres.Dockerfile
image: "llmchat-db"
container_name: "llmchat_db"
environment:
POSTGRES_DB: "llmchat"
POSTGRES_USER: "locallm"
POSTGRES_PASSWORD: "locallm"
PGDATA: "/data/llmchat-db"
volumes:
- "llmchat-db-docker:/data/llmchat-db"
- ./.local/cluster/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5431:5432"
restart: unless-stopped
# ollama:
# volumes:
# - ollama:/root/.ollama
# container_name: ollama
# pull_policy: always
# tty: true
# restart: unless-stopped
# image: ollama/ollama:latest
volumes:
# ollama: {}
llmchat-db-docker:
external: true