Advertisement
Guest User

PBX

a guest
Jun 28th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.56 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.   freepbx-app:
  5.     container_name: freepbx-app
  6.     image: tiredofit/freepbx
  7.     ports:
  8.     #### If you aren't using a reverse proxy
  9.      #- 80:80
  10.      #### If you want SSL Support and not using a reverse proxy
  11.      #- 443:443
  12.       - 5060:5060
  13.       - 5160:5160
  14.       - 18000-18100:18000-18100/udp
  15.      #### Flash Operator Panel
  16.       - 4445:4445
  17.     volumes:
  18.      - ./certs:/certs
  19.       - ./data:/data
  20.       - ./logs:/var/log
  21.       - ./data/www:/var/www/html
  22.      ### Only Enable this option below if you set DB_EMBEDDED=TRUE
  23.      #- ./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.  
  27.     environment:
  28.       - VIRTUAL_HOST=hostname.example.com
  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.  
  36.       - ZABBIX_HOSTNAME=freepbx-app
  37.  
  38.       - RTP_START=18000
  39.       - RTP_FINISH=18100
  40.    
  41.      ## Use for External MySQL Server
  42.       - DB_EMBEDDED=FALSE
  43.  
  44.      ### These are only necessary if DB_EMBEDDED=FALSE
  45.       - DB_HOST=freepbx-db
  46.       - DB_PORT=3306
  47.       - DB_NAME=asterisk
  48.       - DB_USER=asterisk
  49.       - DB_PASS=asteriskpass
  50.    
  51.      ### If you are using TLS Support for Apache to listen on 443 in the container drop them in /certs and set these:
  52.      #- TLS_CERT=cert.pem
  53.      #- TLS_KEY=key.pem
  54.      
  55.     restart: always
  56.  
  57.     ### These final lines are for Fail2ban. If you don't want, comment and also add ENABLE_FAIL2BAN=FALSE to your environment
  58.     cap_add:
  59.      - NET_ADMIN
  60.     privileged: true
  61.  
  62.   freepbx-db:
  63.     container_name: freepbx-db
  64.     image: tiredofit/mariadb
  65.     restart: always
  66.     volumes:
  67.      - ./db:/var/lib/mysql
  68.     environment:
  69.      - MYSQL_ROOT_PASSWORD=password
  70.       - MYSQL_DATABASE=asterisk
  71.       - MYSQL_USER=asterisk
  72.       - MYSQL_PASSWORD=asteriskpass
  73.  
  74.   freepbx-db-backup:
  75.     container_name: freepbx-db-backup
  76.     image: tiredofit/db-backup
  77.     links:
  78.     - freepbx-db
  79.     volumes:
  80.      - ./dbbackup:/backup
  81.     environment:
  82.      - ZABBIX_HOSTNAME=freepbx-db-backup
  83.       - DB_HOST=freepbx-db
  84.       - DB_TYPE=mariadb
  85.       - DB_NAME=asterisk
  86.       - DB_USER=asterisk
  87.       - DB_PASS=asteriskpass
  88.       - DB_DUMP_FREQ=1440
  89.       - DB_DUMP_BEGIN=0000
  90.       - DB_CLEANUP_TIME=8640
  91.       - COMPRESSION=BZ
  92.       - MD5=TRUE
  93.     restart: always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement