-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (51 loc) · 1.08 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
49
50
51
52
53
54
55
56
57
58
59
version: '3.8'
services:
streamlit_app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8501:8501"
networks:
- app_network
volumes:
- .:/app
environment:
DATABASE_URL: "postgresql://yourusername:yourpassword@db:5432/yourdatabase"
depends_on:
- llama_server
- db
llama_server:
build:
context: .
dockerfile: Dockerfile_lama
container_name: qwen_api_server
ports:
- "11434:11434"
volumes:
- .:/app/
- ./models:/root/.ollama/models
pull_policy: always
tty: true
restart: always
networks:
- app_network
entrypoint: /app/entrypoint.sh
db:
image: postgres:13
container_name: postgres_1
environment:
POSTGRES_USER: yourusername
POSTGRES_PASSWORD: yourpassword
POSTGRES_DB: yourdatabase
ports:
- "5432:5432"
networks:
- app_network
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
app_network:
volumes:
postgres_data: