forked from ugoviti/izpbx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (69 loc) · 2.16 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
version: '3'
networks:
izpbx:
services:
izpbx:
container_name: izpbx
#hostname: ${APP_FQDN}
image: izdock/izpbx-asterisk:18.15.0
restart: always
depends_on:
- db
env_file:
- .env
ports:
- ${APP_PORT_HTTP}:${APP_PORT_HTTP}
- ${APP_PORT_HTTPS}:${APP_PORT_HTTPS}
- ${APP_PORT_IAX}:${APP_PORT_IAX}
- ${APP_PORT_IAX}:${APP_PORT_IAX}/udp
- ${APP_PORT_PJSIP}:${APP_PORT_PJSIP}
- ${APP_PORT_PJSIP}:${APP_PORT_PJSIP}/udp
- ${APP_PORT_SIP}:${APP_PORT_SIP}/udp
- ${APP_PORT_SIP}:${APP_PORT_SIP}
- ${APP_PORT_AMI}:${APP_PORT_AMI}
#- ${APP_PORT_RTP_START}-${APP_PORT_RTP_END}:${APP_PORT_RTP_START}-${APP_PORT_RTP_END}
- ${APP_PORT_RTP_START}-${APP_PORT_RTP_END}:${APP_PORT_RTP_START}-${APP_PORT_RTP_END}/udp
- ${APP_PORT_DHCP}:${APP_PORT_DHCP}/udp
- ${APP_PORT_TFTP}:${APP_PORT_TFTP}
- ${APP_PORT_TFTP}:${APP_PORT_TFTP}/udp
- ${APP_PORT_FOP2}:${APP_PORT_FOP2}
- ${APP_PORT_ZABBIX}:${APP_PORT_ZABBIX}
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/izpbx:/data
## fail2ban need privileged mode to manage iptables
cap_add:
- NET_ADMIN
privileged: true
# for simpler sip nat management use: 'network_mode: host'
network_mode: host
## if 'network_mode: host' is disabled, comment out the following lines
#links:
#- db
#networks:
#- izpbx
db:
container_name: izpbx-db
image: mariadb:10.5.8
## WARNING: if you upgrade image tag enter the container and run mysql_upgrade:
## docker exec -it izpbx-db bash
## mysql_upgrade -u root -p
command: --sql-mode=ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
restart: always
env_file:
- .env
## database configurations (WARNING: if commented out, the database will be exposed outside the container)
ports:
- ${APP_PORT_MYSQL}:3306
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
#network_mode: host
# if 'network_mode: host' is disabled, comment out the following lines
networks:
- izpbx