-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (63 loc) · 2.96 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
60
61
62
63
version: '3'
services:
db:
image: postgres
twilreapi:
#image: dwilkie/twilreapi:spec
image: gbtwilreapi:latest
command: bundle exec rails s -p 3000 -b '0.0.0.0'
environment:
- RAILS_ENV=development
- DB_HOST=db
- DB_USERNAME=postgres
- "TWILREAPI_WORKER_JOB_OUTBOUND_CALL_JOB_DRB_URL=druby://adhearsion:9050"
- NO_ADMIN_AUTH=1
depends_on:
- db
# expose the ports below if you want to access API from host
ports:
- "3000:3000"
adhearsion:
#image: dwilkie/somleng:spec
image: gbsomleng:latest
environment:
- AHN_CORE_HTTP_ENABLE=false
- AHN_CORE_HOST=freeswitch
- AHN_CORE_PASSWORD=secret
- AHN_CORE_USERNAME=adhearsion@localhost
- AHN_ADHEARSION_DRB_PORT=9050
- AHN_TWILIO_REST_API_ENABLED=1
- "AHN_TWILIO_VOICE_REQUEST_METHOD=post"
- "AHN_TWILIO_VOICE_REQUEST_URL=http://192.168.0.101:3000/api"
#- "AHN_TWILIO_REST_API_PHONE_CALLS_URL=http://twilreapi:3000/api/admin/phone_calls"
- "AHN_TWILIO_REST_API_PHONE_CALLS_URL=http://192.168.0.101:3000/api/admin/phone_calls"
#- "AHN_TWILIO_REST_API_PHONE_CALL_EVENTS_URL=http://twilreapi:3000/api/admin/phone_calls/:phone_call_id/phone_call_events"
- "AHN_TWILIO_REST_API_PHONE_CALL_EVENTS_URL=http://192.168.0.101:3000/api/admin/phone_calls/:phone_call_id/phone_call_events"
# if you want to use with a softphone registered on the host, change @linphone to your default route
# For Docker for Mac set it to 'docker.for.mac.localhost'.
# See https://stackoverflow.com/a/43541732
# For linux set it to the result of $ sudo docker-compose run curl /bin/sh -c 'ip route show'
# See https://stackoverflow.com/a/31328031
#- "AHN_SOMLENG_DEFAULT_DIAL_STRING_FORMAT=sofia/external/%{destination}@linphone"
- "AHN_SOMLENG_DEFAULT_DIAL_STRING_FORMAT={ignore_early_media=true,,originate_continue_on_timeout=true,originate_retries=2}sofia/gateway/goip/%{destination}"
#- "AHN_SOMLENG_DEFAULT_DIAL_STRING_FORMAT={ignore_early_media=true,originate_continue_on_timeout=true,originate_timeout=30,originate_retries=2,originate_retry_sleep_ms=60000}sofia/gateway/goip/%{destination}"
#- "AHN_SOMLENG_DEFAULT_DIAL_STRING_FORMAT={ignore_early_media=true,originate_timeout=30,originate_retries=3,originate_retry_sleep_ms=60000}sofia/gateway/goip/%{destination}"
depends_on:
- freeswitch
freeswitch:
image: gbfree:latest
#image: dwilkie/freeswitch-rayo
# expose the ports below if you want to use with a softphone registered on the host
ports:
- "5060:5060"
# can remove linphone if you want to use a softphone registered on the host
#linphone:
#image: dwilkie/linphone-docker
#command: /bin/bash -c 'linphonecsh init && tail -f /dev/null'
#volumes:
#- /dev/snd:/dev/snd
#privileged: true
# can remove curl if have curl/jq installed on your host
curl:
image: endeveit/docker-jq
command: /bin/sh -c 'cat /dev/null'