-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# asterisk-docker | ||
The project to build an Asterisk Docker image based on Alpine Linux. | ||
|
||
Check out the prebuilt image on Docker Hub: https://hub.docker.com/r/iwayvietnam/asterisk | ||
|
||
### How to start a new Asterisk container from prebuilt Docker image | ||
##### Create a new Docker volume for Asterisk container: | ||
```bash | ||
$ docker volume create asterisk-sounds | ||
$ docker volume create asterisk-keys | ||
$ docker volume create asterisk-phoneprov | ||
$ docker volume create asterisk-spool | ||
$ docker volume create asterisk-log | ||
``` | ||
##### Run Asterisk in a container: | ||
```bash | ||
$ docker run --name asterisk -it \ | ||
-p 0.0.0.0:5060:5060 -p 0.0.0.0:5060:5060/udp \ | ||
-v asterisk-sounds:/var/lib/asterisk/sounds \ | ||
-v asterisk-keys:/var/lib/asterisk/keys \ | ||
-v asterisk-phoneprov:/var/lib/asterisk/phoneprov \ | ||
-v asterisk-spool:/var/spool/asterisk \ | ||
-v asterisk-log:/var/log/asterisk \ | ||
iwayvietnam/asterisk | ||
``` | ||
|
||
### LICENSE | ||
This work is released under GNU General Public License v3 or above. |