2023-01-18 23:39:46 +08:00
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
services:
|
|
|
|
asterisk:
|
|
|
|
image: onenetcom/asterisk
|
|
|
|
restart: unless-stopped
|
2023-01-18 23:43:43 +08:00
|
|
|
cap_add:
|
|
|
|
- sys_ptrace # Only here to help testing
|
|
|
|
- net_admin # Allow NFT, used by AutoBan
|
|
|
|
- net_raw # Allow NFT, used by AutoBan
|
2023-01-18 23:39:46 +08:00
|
|
|
environment:
|
|
|
|
ASTERISK_USER: asterisk
|
|
|
|
volumes:
|
2023-01-24 10:38:25 +08:00
|
|
|
- /etc/timezone:/etc/timezone
|
2023-01-18 23:39:46 +08:00
|
|
|
- ./asterisk:/etc/asterisk
|
|
|
|
- ./logs:/var/log/asterisk
|
|
|
|
network_mode: host
|
|
|
|
|
|
|
|
|
|
|
|
|