jw-asterisk-docker/docker-compose.yml

22 lines
560 B
YAML
Raw Normal View History

2023-01-18 23:39:46 +08:00
version: '3.6'
services:
asterisk:
2023-02-27 09:39:02 +08:00
image: onenetcom/asterisk:1.6
2023-01-18 23:39:46 +08:00
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-24 10:42:15 +08:00
- /etc/localtime:/etc/localtime:ro
2023-01-18 23:39:46 +08:00
- ./asterisk:/etc/asterisk
- ./logs:/var/log/asterisk
network_mode: host