jw-asterisk-docker/docker-compose.yml

22 lines
560 B
YAML

version: '3.6'
services:
asterisk:
image: onenetcom/asterisk:1.6
restart: unless-stopped
cap_add:
- sys_ptrace # Only here to help testing
- net_admin # Allow NFT, used by AutoBan
- net_raw # Allow NFT, used by AutoBan
environment:
ASTERISK_USER: asterisk
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime:ro
- ./asterisk:/etc/asterisk
- ./logs:/var/log/asterisk
network_mode: host