cezenGIT/asterisk_only/docker-compose.yml
2025-03-28 13:56:28 +05:30

36 lines
1.4 KiB
YAML
Executable File

# Note will only work on Ubuntu if you what in to work on win then change the RHS to a windows dir path format
# make sure you have run these shell scripts from a docker container
# host machine
# mkdir -p /home/mathew/Desktop/Dev/Asterisk/cezenPBX/asterisk-config/
# docker cp cezenPBX:/etc/asterisk/pjsip.conf /home/mathew/Desktop/Dev/Asterisk/cezenPBX/asterisk-config/
# docker cp cezenPBX:/etc/asterisk/extensions.conf /home/mathew/Desktop/Dev/Asterisk/cezenPBX/asterisk-config/
#NOT WORKING? do this
# docker cp <container_id>:/etc/asterisk/pjsip.conf ./pjsip.conf
version: '3'
services:
asterisk:
image: mathewfrancisv/cezen_asterisk:latest
container_name: cezenPBX
# && /home/mathew/Desktop/Dev/Asterisk/cezenPBX/asterisk-config/extensions.conf:/etc/asterisk/extensions.conf \
# && /home/mathew/Desktop/Dev/Asterisk/cezenPBX/asterisk-config/pjsip.conf:/etc/asterisk/pjsip.conf \
volumes:
# LHS:RHS
# LHS -- make sure you have both the Asterisk config files in the LHS path
# RHS the lhs will be mounted on the RHS path
# - ~/asterisk-config/pjsip.conf:/etc/asterisk/pjsip.conf
# - ~/asterisk-config/extensions.conf:/etc/asterisk/extensions.conf
- ./pjsip.conf:/etc/asterisk/pjsip.conf
- ./extensions.conf:/etc/asterisk/extensions.conf
ports:
- "5060:5060/udp"
- "5060:5060/tcp"
restart: always