-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
77 lines (69 loc) · 1.43 KB
/
compose.yaml
File metadata and controls
77 lines (69 loc) · 1.43 KB
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
version: '3.8'
services:
mariadb:
image: mariadb:11.1.2
hostname: mariadb
restart: always
env_file:
- .env
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_HOST=${MARIADB_HOST}
ports:
- "3306:3306"
volumes:
- ./mariadb/my-resolve.cnf:/etc/mysql/mariadb.conf.d/my-resolve.cnf:ro
- db:/var/lib/mysql
asterisk:
hostname: asterisk
build:
context: ./asterisk
image: asterisk:0.1.3
ports:
- 5038:5038
- 5039:5039
volumes:
- asterisk_run:/var/run/asterisk
- asterisk_etc:/etc/asterisk
adminer:
image: adminer:4.8.1
restart: always
ports:
- 8080:8080
environment:
- ADMINER_DEFAULT_SERVER=mariadb
depends_on:
- mariadb
freepbx:
hostname: freepbx
build:
context: ./freepbx
volumes:
- asterisk_run:/var/run/asterisk
- asterisk_etc:/etc/asterisk
- freepbx_www:/var/www/html
depends_on:
- asterisk
- mariadb
ports:
- 9000:9000
env_file:
- .env
environment:
- ASTERISK_CLI_HOST=asterisk
- ASTERISK_CLI_PORT=5939
command: ["/usr/sbin/php-fpm7"]
nginx:
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- freepbx_www:/var/www/html
ports:
- 80:80
depends_on:
- freepbx
volumes:
asterisk_etc:
asterisk_run:
freepbx_www:
db: