-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (101 loc) · 2.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
108 lines (101 loc) · 2.29 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
services:
asterisk-pbx:
build: ./asterisk-pbx
container_name: asterisk-pbx
volumes:
- ./asterisk-pbx/conf:/etc/asterisk
networks:
lurker-net:
ipv4_address: 10.99.0.10
restart: unless-stopped
asterisk-proxy:
build: ./asterisk-proxy
container_name: asterisk-proxy
volumes:
- ./asterisk-proxy/conf:/etc/asterisk
depends_on:
- asterisk-pbx
networks:
lurker-net:
ipv4_address: 10.99.0.11
restart: unless-stopped
lurker:
build: ./lurker
container_name: lurker
ports:
- "8080:8080"
volumes:
- ./lurker/src:/app/src
environment:
ARI_URL: http://asterisk-proxy:8088
ARI_APP: lurker
ARI_USER: lurker
ARI_PASS: lurkerpass
RTP_LISTEN_HOST: "10.99.0.20"
RTP_LISTEN_PORT: "9999"
WHISPER_MODEL: "small.en"
OLLAMA_URL: http://ollama:11434
OLLAMA_MODEL: "qwen2:0.5b"
OPENAI_API_KEY: "${OPENAI_API_KEY:-}"
OPENAI_MODEL: "gpt-4o-mini"
depends_on:
- asterisk-proxy
- ollama
networks:
lurker-net:
ipv4_address: 10.99.0.20
restart: unless-stopped
ollama:
image: ollama/ollama:latest
container_name: ollama
volumes:
- ollama-models:/root/.ollama
entrypoint: ["/bin/bash", "-c"]
command:
- |
ollama serve &
sleep 10
ollama pull qwen2:0.5b
wait
networks:
lurker-net:
ipv4_address: 10.99.0.40
restart: unless-stopped
sip-alice:
build: ./sip-clients
container_name: sip-alice
volumes:
- ./sip-clients/entrypoint.sh:/entrypoint.sh
environment:
SIP_ROLE: alice
PBX_HOST: asterisk-pbx
PBX_PORT: "5060"
depends_on:
- asterisk-pbx
networks:
lurker-net:
ipv4_address: 10.99.0.51
restart: unless-stopped
sip-bob:
build: ./sip-clients
container_name: sip-bob
volumes:
- ./sip-clients/entrypoint.sh:/entrypoint.sh
environment:
SIP_ROLE: bob
PBX_HOST: asterisk-pbx
PBX_PORT: "5060"
depends_on:
- asterisk-pbx
networks:
lurker-net:
ipv4_address: 10.99.0.52
restart: unless-stopped
networks:
lurker-net:
driver: bridge
ipam:
config:
- subnet: 10.99.0.0/24
volumes:
ollama-models: