space-voip/docker-compose.yml

29 lines
592 B
YAML

version: '2'
services:
asterisk:
build: .
image: registry.k0.hswaw.net/informatic/space-voip
# network_mode: "host"
env_file:
- config.env
ports:
- 10000
- 10001
- 10002
- 10003
- 10004
- 10005
- 10006
- 10007
- 10008
- 10009
- 10010
# Uncomment this to store recordings in host directory
# volumes:
# - "./rec:/var/spool/asterisk/monitor"
volumes:
- "./phonetab:/etc/asterisk/phonetab"
- "./moh:/var/lib/asterisk/moh"
- "./peers.yml:/etc/asterisk/peers.yml:ro"