version: '2' services: kamailio: build: ./kamailio restart: always hostname: kamailio container_name: kamailio entrypoint: - /bin/bash - /etc/kamailio/entrypoint.sh volumes: - ./kamailio:/etc/kamailio - ./kamailio/kamailio:/etc/default/kamailio - ./kamailio/rtpproxy:/etc/default/rtpproxy ports: - "5060:5060/tcp" - "5060:5060/udp" - "5061:5061/tcp" - "5061:5061/udp" networks: - net networks: - net