-
Notifications
You must be signed in to change notification settings - Fork 132
/
docker-compose.yml
46 lines (46 loc) · 1.25 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
services:
webui:
image: harryliu888/audio-notes
container_name: audio_notes_webui
ports:
- 15433:15433
volumes:
- ./modelscope:/root/.cache/modelscope
- ./storage:/app/storage
restart: always
networks:
- audio_notes
environment:
# 登录账号
- USERNAME=admin
- PASSWORD=admin
# 数据库配置(需要与下面pg服务的配置一致)
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=audio_notes
- POSTGRES_HOST=pg
# ollama配置
- OLLAMA_BASE_URL=http://host.docker.internal:11434/v1
- OLLAMA_MODEL=qwen2:7b
- OLLAMA_API_KEY=ollama
depends_on:
- pg
extra_hosts:
- 'host.docker.internal:host-gateway'
pg:
image: postgres:12.19-bullseye
container_name: audio_notes_pg
restart: always
ports:
- 15432:5432
networks:
- audio_notes
environment:
# 这里的配置只有首次运行生效。修改后,重启镜像是不会生效的。需要把持久化数据删除再重启,才有效果
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=audio_notes
volumes:
- ./postgresql:/var/lib/postgresql/data
networks:
audio_notes: