-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (24 loc) · 796 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
26 lines (24 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: '3.8'
#to create image
# docker-compose up -d
#manual code is this : docker run -d --name my-asterisk -p 5060:5060/udp -p 10000-10099:10000-10099/udp -v c:\continer\work\code\asterisk-project\config:/etc/asterisk andrius/asterisk:stable
#docker-compose start my-asterisk
#docker stop my-asterisk
#docker restart my-asterisk
services:
asterisk:
build: .
container_name: my-asterisk
restart: always
network_mode: bridge
ports:
- "5060:5060/udp"
- "10000-10099:10000-10099/udp"
volumes:
# This syncs your local config folder with the container
- ./config:/etc/asterisk
# This helps with the "Request Timeout" by making sure the container
# knows how to handle external traffic
environment:
- COLUMNS=80
- LINES=24