-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (47 loc) · 1.01 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
version: '2.3'
services:
asterisk:
image: andrius/asterisk
deploy:
mode: replicated
replicas: 3
networks:
local:
aliases:
- asterisk.local
kamailio_dispatcher:
depends_on:
- db
- asterisk
build:
context: ${PWD}/kamailio
dockerfile: Dockerfile
ports:
- "5060:5060/udp"
restart: always
networks:
local:
aliases:
- kamailio_dispatcher.local
db:
image: mysql:5.7
volumes:
- /tmp/dbdata:/var/lib/mysql
- ./containers/mysql/resources:/docker-entrypoint-initdb.d/
ports:
- "3306"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_USER=kamailio
- MYSQL_PASSWORD=kamailiorw
- MYSQL_DATABASE=kamailio
healthcheck:
test: mysql --user=root -e "select * from mysql.user"
timeout: 45s
retries: 5
networks:
local:
aliases:
- db.local
networks:
local: