version: '3.6' services: asterisk: image: onenetcom/asterisk 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: - ./asterisk:/etc/asterisk - ./logs:/var/log/asterisk network_mode: host