-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (62 loc) · 1.8 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
version: '3.7'
services:
asterisk:
container_name: asterisk-webrtc
image: asterisk/webrtc:latest
#expose:
# - 443
# - 80
ports:
#### If you aren't using a reverse proxy
#- 80:80
#### If you want SSL Support and not using a reverse proxy
- 5060:5060
- 5160:5160
- 18000-18100:18000-18100/udp
#- 8088:8088
#- 8089:8089
##volumes:
## - ./certs:/certs
## - ./data:/data
## - ./logs:/var/log
## - ./data/www:/var/www/html
### Only Enable this option below if you set DB_EMBEDDED=TRUE
#- ./db:/var/lib/mysql##
environment:
- VIRTUAL_HOST=pbx.zimteste.serpro.gov.br
- VIRTUAL_NETWORK=net
### If you want to connect to the SSL Enabled Container
#- VIRTUAL_PORT=443
- VIRTUAL_PROTO=https
- VIRTUAL_PORT=8089
- LETSENCRYPT_HOST=pbx.zimteste.serpro.gov.br
- IP_DOCKER=172.23.0.3
#- ZABBIX_HOSTNAME=freepbx-app
#- ENABLE_FAIL2BAN=FALSE
- RTP_START=18000
- RTP_FINISH=18100
## Use for External MySQL Server
#- DB_EMBEDDED=FALSE
### These are only necessary if DB_EMBEDDED=FALSE
#- DB_HOST=freepbx-db
#- DB_PORT=3306
#- DB_NAME=asterisk
#- DB_USER=asterisk
#- DB_PASS=asteriskpass
### If you are using TLS Support for Apache to listen on 443 in the container drop them in /certs and set these:
#- TLS_CERT=cert.pem
#- TLS_KEY=key.pem
restart: always
networks:
- asterisk
- net
### These final lines are for Fail2ban. If you don't want, comment and also add ENABLE_FAIL2BAN=FALSE to your environment
#cap_add:
# - NET_ADMIN
#privileged: true
networks:
net:
external: true
asterisk:
internal: true