asterisk 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. https://github.com/epandi/asterisk-freepbx-rpi/blob/master/docker-compose.yml
  2. version: '2'
  3. services:
  4. freepbx-app:
  5. container_name: freepbx-app
  6. image: epandi/asterisk-freepbx-arm:18.15-alpha
  7. ports:
  8. #### If you aren't using a reverse proxy
  9. - 85:80
  10. #### If you want SSL Support and not using a reverse proxy
  11. #- 443:443
  12. - 5060:5060/udp
  13. - 5160:5160/udp
  14. - 18000-18100:18000-18100/udp
  15. #### Flash Operator Panel
  16. - 4445:4445
  17. volumes:
  18. - /home/pi/Docker/asterisk17/certs:/certs
  19. - /home/pi/Docker/asterisk17/data:/data
  20. - /home/pi/Docker/asterisk17/logs:/var/log
  21. - /home/pi/Docker/asterisk17/data/www:/var/www/html
  22. ### Only Enable this option below if you set DB_EMBEDDED=TRUE
  23. - /home/pi/Docker/asterisk17/db:/var/lib/mysql
  24. ### You can drop custom files overtop of the image if you have made modifications to modules/css/whatever - Use with care
  25. #- ./assets/custom:/assets/custom
  26. environment:
  27. - VIRTUAL_HOST=asterisk.local
  28. - VIRTUAL_NETWORK=nginx-proxy
  29. ### If you want to connect to the SSL Enabled Container
  30. #- VIRTUAL_PORT=443
  31. #- VIRTUAL_PROTO=https
  32. # - VIRTUAL_PORT=80
  33. # - LETSENCRYPT_HOST=hostname.example.com
  34. # - LETSENCRYPT_EMAIL=email@example.com
  35. - ZABBIX_HOSTNAME=freepbx-app
  36. - RTP_START=18000
  37. - RTP_FINISH=18100
  38. ## Use for External MySQL Server
  39. - DB_EMBEDDED=TRUE
  40. ### These are only necessary if DB_EMBEDDED=FALSE
  41. # - DB_HOST=freepbx-db
  42. # - DB_PORT=3306
  43. # - DB_NAME=asterisk
  44. # - DB_USER=asterisk
  45. # - DB_PASS=asteriskpass
  46. ### If you are using TLS Support for Apache to listen on 443 in the container drop them in /certs and set these:
  47. #- TLS_CERT=cert.pem
  48. #- TLS_KEY=key.pem
  49. restart: always
  50. network_mode: "bridge"
  51. ### These final lines are for Fail2ban. If you don't want, comment and also add ENABLE_FAIL2BAN=FALSE to your environment
  52. cap_add:
  53. - NET_ADMIN
  54. privileged: true
  55. dns:
  56. - 1.1.1.1