-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
90 lines (88 loc) · 1.58 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
version: '3'
services:
asterisk:
build: ./asterisk
ports:
- 8890-8899:8888/tcp
- 6060-6069:5060/udp
links:
- consul
- rabbitmq
expose:
- 8888/tcp
- 5060/udp
volumes:
- ./asterisk/dev:/usr/src/dev
api-gateway:
build: ./api-gateway
ports:
- 8088:80/tcp
links:
- consul
expose:
- 80/tcp
consul:
image: consul
ports:
- 8500:8500/tcp
rabbitmq:
image: rabbitmq:3-management
ports:
- 5672:5672/tcp
- 15672:15672/tcp
expose:
- 5672/tcp
- 15672/tcp
kamailio:
build: ./kamailio
links:
- consul
- asterisk
ports:
- 5060:5060/udp
expose:
- 5060/udp
astts:
build:
context: ./apps
dockerfile: ./astts/Dockerfile
links:
- consul
- api-gateway
- rabbitmq
- asterisk
expose:
- 8001/tcp
ports:
- 8001:8001/tcp
environment:
- API_ENDPOINT=http://api-gateway
- AMQP_HOST=rabbitmq
- CONSUL_HOST=consul
- APP_HOST=astts
- APP_PORT=8001
conf:
build:
context: ./apps
dockerfile: ./conf/Dockerfile
links:
- consul
- api-gateway
- rabbitmq
- asterisk
expose:
- 8002/tcp
ports:
- 8002:8002/tcp
environment:
- API_ENDPOINT=http://api-gateway
- AMQP_HOST=rabbitmq
- CONSUL_HOST=consul
- APP_HOST=conf
- APP_PORT=8002
networks:
default:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16