-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
100 lines (92 loc) · 2 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
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
version: '2.0'
services:
db:
# image: mysql:5.7
# platform: linux/amd64
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- db:/var/lib/mysql
broker:
build: ./broker
platform: linux/amd64
command: /bin/sh -c 'make && make run'
volumes:
- ./broker:/app
- asterisk:/usr/local/etc/asterisk
- sounds:/usr/local/var/lib/asterisk/sounds/verboice
- deps:/app/deps
- ebin:/app/ebin
- verboice-data:/data
depends_on:
- db
environment:
AMI_HOST: asterisk-bridge
ASTERISK_RECORD_DIR: /data/call_logs/
BROKER_HOST: 172.88.0.88
DB_HOST: db
tty: true
networks:
default:
ipv4_address: 172.88.0.88
web: &rails
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile.dev
environment:
DATABASE_HOST: 'db'
BROKER_HOST: 'broker'
BROKER_PORT: 9999
volumes:
- .:/app
- bundle:/usr/local/bundle
- verboice-data:/app/data
tmpfs: /app/tmp
depends_on:
- db
command: rails server -b 0.0.0.0 -p 3000
ports:
- 3000
asterisk:
image: instedd/verboice-asterisk
platform: linux/amd64
environment:
BROKER_HOST: 172.88.0.88
LOCAL_NET: 172.88.0.0/16
EXTERNAL_ADDRESS: '192.168.0.108'
volumes:
- asterisk:/etc/asterisk/verboice
- sounds:/var/lib/asterisk/sounds/verboice
- verboice-data:/data
network_mode: host
depends_on:
- asterisk-bridge
asterisk-bridge:
image: instedd/host_bridge
environment:
INPUT_PORT: 5038
privileged: true
ngrok:
image: wernight/ngrok
ports:
- 4040
environment:
NGROK_PORT: 'broker:8080'
volumes:
db:
bundle:
asterisk:
sounds:
deps:
ebin:
verboice-data:
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.88.0.0/16
gateway: 172.88.0.1