![]()
The fullest Docker image with Asterisk. Latest release with Asterisk 20.1.0. Unpacked size: 7.77 GB
This image is based on Debian Bullseye image. Compiled with menuselect --enable-all option, with DAHDI, PJSIP and LIBpri
FROM nazark0/asterisk
RUN apt-get install -y python3 python3-pip
RUN pip3 install psycopg2
WORKDIR /etc/asterisk
RUN rm -rf ./*
COPY configs .
WORKDIR /var/lib/asterisk/sounds/
RUN rm -rf ./*
COPY sounds .
# set default timezone
ENV TZ=Europe/Kiev
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# necessary wrapping script for checking database status
WORKDIR /
COPY wait-for-postgres.py .
ENTRYPOINT ["/usr/bin/python3", "wait-for-postgres.py", "--host", "172.16.238.5", "--command", "./docker-entrypoint.sh"]
wait-for-postgres.py script on GitHub
docker-compose.yml:services:
asterisk:
build:
context: .
dockerfile: Dockerfile.ast
restart: always
network_mode: "host"
container_name: asterisk
hostname: "asterisk"
volumes:
- ./logs:/var/log/asterisk
depends_on:
- db
... rest of configs
Content type
Image
Digest
sha256:80cc0f30e…
Size
4.4 GB
Last updated
over 3 years ago
docker pull nazark0/asterisk