forked from mapesadev/asterisk_agi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.08 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
version: '3'
volumes:
postgres_fastagi: {}
postgres_backups_fastagi: {}
services:
fastagi:
build:
context: ./compose/django/
dockerfile: ./Dockerfile
image: fastagi_server
container_name: fastagi_container
depends_on:
- postgres_fastagi
volumes:
- ./compose/django:/opt/Fastagi
env_file:
- ./.envs/.django
- ./.envs/.postgres
ports:
- "8000:8000"
- "4573:4573"
postgres_fastagi:
image: postgres:11.11
container_name: postgres_fastagi
volumes:
- postgres_fastagi:/var/lib/postgresql/data:Z
- postgres_backups_fastagi:/backups:z
env_file:
- ./.envs/.postgres
ports:
- "5432:5432"
asterisk:
build:
context: ./compose/asterisk-iax2/
dockerfile: ./Dockerfile
container_name: asterisk_fastagi
volumes:
- ./compose/asterisk-iax2/asterisk_conf:/etc/asterisk
- ./compose/asterisk-iax2/audios:/var/lib/asterisk/sounds/custom
- ./compose/asterisk-iax2/agi.py:/var/lib/asterisk/agi-bin/agi.py
ports:
- "4570:4569/udp"
- "8088:8088"