-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
36 lines (34 loc) · 1.03 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
version: '3'
services:
asterisk:
image: asterisk:latest
volumes:
- "${PWD}/etc/asterisk/:/etc/asterisk:rw"
- "${PWD}/log/asterisk:/var/log/asterisk"
- "${PWD}/odbc.ini:/etc/odbc.ini"
- "${PWD}/odbcinst.ini:/etc/odbcinst.ini"
- "${PWD}/.pgsocket:/var/run/postgresql"
- "${PWD}/log/supervisor:/var/log/supervisor"
ports:
- "5060:5060/tcp"
- "5060:5060/udp"
- "5061:5061/tcp"
- "5061:5061/udp"
- "5038:5038"
- "8088:8088"
- "10000-11000:10000-11000/udp"
- "1314"
network_mode: "host"
db:
image: ${POSTGRES_IMAGE:-postgres}:${POSTGRES_IMAGE_VERSION:-12}
environment:
POSTGRES_DB: "${POSTGRES_DB:-postgres}"
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- "${PWD}/.pgdata:/var/lib/postgresql/data"
- "${PWD}/.pgsocket:/var/run/postgresql"
- "${PWD}/init.sql:/docker-entrypoint-initdb.d/init.sql:ro"
ports:
- "5432:5432"
restart: always