-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.02 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
version: '2'
volumes:
database: {}
services:
ksmppd:
hostname: ksmppd
build: .
ports:
- "2345:2345"
- "14010:14010"
volumes:
- ./config:/etc/kannel
depends_on:
- bearerbox
- mariadb
entrypoint:
- /wait-for-it.sh
command: [
"mariadb:3306", "--",
"/usr/local/bin/ksmppd", "/etc/kannel/ksmppd.conf"
]
mariadb:
image: mariadb
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=ksmppd
volumes:
- ./initdb:/docker-entrypoint-initdb.d
- database:/var/lib/mysql
bearerbox:
image: onlinecity/kannel
hostname: bearerbox
entrypoint: bearerbox
command: /etc/kannel/kannel.conf
volumes:
- ./config:/etc/kannel
- ./log:/var/log/kannel
smsbox:
image: onlinecity/kannel
hostname: smsbox
entrypoint: smsbox
command: /etc/kannel/kannel.conf
ports:
- "14013:14013"
links:
- bearerbox
volumes:
- ./config:/etc/kannel
- ./log:/var/log/kannel