This repository has been archived by the owner on Feb 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
105 lines (98 loc) · 2.39 KB
/
docker-compose.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3'
services:
server:
container_name: drash_server
build:
context: .
dockerfile: .docker/deno.dockerfile
args:
DENO_VERSION: 1.15.3
environment:
MAKE_BUILD: "true"
volumes:
- ./src/server:/var/www/server
working_dir: /var/www/server
ports:
- "1667:1667"
networks:
- chatsterisk-app-network
call_socket:
container_name: call_socket
depends_on:
- asterisk
build:
context: .
dockerfile: .docker/deno.dockerfile
args:
DENO_VERSION: 1.15.3
ports:
- "1668:1668"
volumes:
- "./src/call_socket:/var/www/call_socket"
working_dir: /var/www/call_socket
networks:
- chatsterisk-app-network
video_socket:
container_name: video_socket
depends_on:
- asterisk
build:
context: .
dockerfile: .docker/deno.dockerfile
args:
DENO_VERSION: 1.15.3
ports:
- "1669:1669"
volumes:
- "./src/video_socket:/var/www/video_socket"
working_dir: /var/www/video_socket
networks:
- chatsterisk-app-network
chat_socket:
container_name: chat_socket
depends_on:
- asterisk
build:
context: .
dockerfile: .docker/deno.dockerfile
args:
DENO_VERSION: 1.15.3
environment:
USE_DENON: "true"
ports:
- "1670:1670"
volumes:
- "./src/chat_socket:/var/www/chat_socket"
working_dir: /var/www/chat_socket
networks:
- chatsterisk-app-network
asterisk:
container_name: asterisk_pbx
image: hibou/asterisk:14
ports:
- "5060:5060/udp"
- "5060:5060/tcp"
- "16384-16394:16384-16394/udp"
- "8088:8088"
- "8089:8089"
- "5038:5038" # asterisk ami (manager.conf)
volumes:
- "./.docker/config/asterisk/sip.conf:/etc/asterisk/sip.conf"
- "./.docker/config/asterisk/extensions.conf:/etc/asterisk/extensions.conf"
# - "./.docker/config/asterisk/pjsip.conf:/etc/asterisk/pjsip.conf"
- "./.docker/config/asterisk/rtp.conf:/etc/asterisk/rtp.conf"
- "./.docker/config/asterisk/manager.conf:/etc/asterisk/manager.conf"
labels:
- "traefik.enable=false"
# networks:
# default:
# ipv4_address: 10.1.2.10
networks:
- chatsterisk-app-network
networks:
chatsterisk-app-network:
driver: bridge
# default:
# ipam:
# config:
# - subnet: 10.1.2.0/24