Public | Automated Build

Last pushed: 16 days ago
Short Description
Asterisk PBX in Docker on Alpine Linux. Smallest Asterisk ever! ;)
Full Description

Asterisk PBX 11.17.1 Docker image

The smallest Docker image with Asterisk PBX 11.17.1 (~17MB)

This image is based on Alpine Linux (2.7) image, which is only a 5MB image, and contains
Asterisk PBX 11.17.1.

Due of bug, this image based on latest Alpine Linux version (2.7), where everything works: SIP stack, calls, AGI, AMI. Author uing this image for ongoing VoIP systems development with Adhearsion.

This bug is fixed on November 18, 2016, fresh asterisk version is available now.

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 store 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 --allow-untrusted \
&&  rm -rf /var/cache/apk/*
Docker Pull Command
Source Repository