sdrplay-fm-radio/containers/asterisk/docker-compose.yml
2024-06-29 19:28:01 +09:30

29 lines
1.2 KiB
YAML

version: '3'
services:
tele:
image: mlan/asterisk
network_mode: bridge # Only here to help testing
cap_add:
- sys_ptrace # Only here to help testing
- net_admin # Allow NFT, used by AutoBan
- net_raw # Allow NFT, used by AutoBan
ports:
- "${SMS_PORT-8081}:${WEBSMSD_PORT:-80}" # WEBSMSD port mapping
- "5060:5060/udp" # SIP UDP port
- "5060:5060" # SIP TCP port
- "5061:5061" # SIP TLS port
- "10000-10099:10000-10099/udp" # RTP ports
environment:
- SYSLOG_LEVEL=${SYSLOG_LEVEL-4} # Logging
- HOSTNAME=${TELE_SRV-tele}.${DOMAIN-docker.localhost}
- PULSE_SERVER=unix:/run/pulse/socket # Use host audio
- PULSE_COOKIE=/run/pulse/cookie # Use host audio
- WEBSMSD_PORT=${WEBSMSD_PORT-80} # WEBSMSD internal port
volumes:
- tele-conf:/srv # Persistent storage
- ./pulse:/run/pulse:rshared # Use host audio
- /etc/localtime:/etc/localtime:ro # Use host timezone
volumes:
tele-conf: # Persistent storage