forked from sipcapture/homer5-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (97 loc) · 2.35 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
version: '2'
services:
# --------------------------------------------- Web app container
webapp:
container_name: homer-webapp
build: ./webapp/.
image: sipcapture/homer-webapp
ports:
- "80:80"
depends_on:
- mysql
volumes:
- /homer-api/
- homer-data-semaphore:/homer-semaphore/
- homer-data-dashboard:/var/www/html/store/dashboard/
links:
- "mysql:mysql"
env_file:
- ./homer.env
restart: always
# --------------------------------------------- cron container
cron:
container_name: homer-cron
build: ./cron/.
image: sipcapture/homer-cron
depends_on:
- mysql
volumes:
- homer-data-semaphore:/homer-semaphore/
links:
- "mysql:mysql"
env_file:
- ./homer.env
restart: always
# --------------------------------------------- Kamailio container
kamailio:
container_name: homer-kamailio
build: ./kamailio/.
image: sipcapture/homer-kamailio
ports:
- "9060:9060/udp"
depends_on:
- mysql
links:
- "mysql:mysql"
volumes:
- homer-data-semaphore:/homer-semaphore/
# entrypoint:
# - /bin/bash
# command:
# >
# -c 'while true; do sleep 60; done;'
env_file:
- ./homer.env
restart: always
# --------------------------------------------- Data bootstrapping container
# debug with:
# docker run -it --volumes-from homer-webapp --network homerdocker_default --link mysql:mysql mysql:5.6 /bin/bash
bootstrap:
container_name: bootstrap-mysql
image: mysql:5.6
depends_on:
- mysql
- webapp
links:
- "mysql:mysql"
volumes_from:
- webapp
volumes:
- homer-data-semaphore:/homer-semaphore/
- ./bootstrap-data/bootstrap.sh:/bootstrap.sh
# entrypoint:
# - /bin/bash
# command:
# >
# -c 'while true; do sleep 60; done;'
entrypoint:
- /bootstrap.sh
env_file:
- ./homer.env
# --------------------------------------------- MySQL container.
mysql:
container_name: mysql
image: mysql:5.6
volumes:
- ./mysql/run.sh:/run.sh
- homer-data-semaphore:/homer-semaphore/
- homer-data-mysql:/var/lib/mysql
entrypoint:
- /run.sh
env_file:
- ./homer.env
restart: always
volumes:
homer-data-semaphore:
homer-data-mysql:
homer-data-dashboard: