ecc111ca2df9ed88ef36d72309ace8ed0fbf0e45
Asterisk PBX Docker image
The smallest Docker image with Asterisk PBX https://hub.docker.com/r/andrius/alpine-asterisk/
This image is based on Alpine Linux image, which is only a 5MB image, and contains Asterisk PBX.
Total size of this image is only:
What's missing
Only base Asterisk packages installed. If you want to add sounds, it's recommended to mount them as volume or data container, however you may install additional packages with apk command:
- asterisk-sounds-en
- asterisk-sounds-moh
- asterisk-alsa
- asterisk-srtp
- asterisk-curl
- asterisk-tds
- asterisk-mobile
- asterisk-dahdi
- asterisk-fax
- asterisk-speex
- asterisk-pgsql
- asterisk-odbc
Database support
By default, Asterisk PBX strre CDR's to the CSV file, but also support databases. Refer Asterisk PBX documentation for ODBC support.
For Postgre SQL include following lines to your Dockerfile:
RUN apk add --update less psqlodbc asterisk-odbc asterisk-pgsql \
&& rm -rf /var/cache/apk/*
And For MySQL:
RUN apk add --update psqlodbc asterisk-odbc \
&& apk add mysql-connector-odbc --update-cache --repository http://dl-4.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
&& rm -rf /var/cache/apk/*
Description
Languages
Shell
56.7%
Makefile
26.1%
Dockerfile
10.1%
HTML
7.1%