sdmswitch/docker-compose.yml
2024-08-07 11:40:27 +08:00

30 lines
958 B
YAML

services:
switch:
image: quay.io/wandoubaba517/sdmswitch:1.10.10
restart: always
container_name: switch
volumes:
- ./switch/.fs_cli_conf:/root/.fs_cli_conf
- ./switch/conf:/usr/local/freeswitch/conf
- ./switch/grammar:/usr/local/freeswitch/grammar
- ./switch/recordings:/usr/local/freeswitch/recordings
- ./switch/scripts:/usr/local/freeswitch/scripts
- ./switch/sounds:/usr/local/freeswitch/sounds
- ./switch/log:/usr/local/freeswitch/log
- /usr/local/share/lua/5.1:/usr/local/share/lua/5.1
- /usr/local/lib/lua/5.1:/usr/local/lib/lua/5.1
network_mode: host
command: ["freeswitch"]
depends_on:
- sdm
sdm:
image: registry.cn-shanghai.aliyuncs.com/nls-cloud/sdm
restart: always
container_name: sdm
volumes:
- ./sdm/data:/home/admin/disk
- ./sdm/logs:/home/admin/logs
network_mode: host
privileged: true
command: ["standalone"]