Skip to content

Commit

Permalink
Add README file
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanta committed Jun 7, 2022
1 parent 40423b9 commit 5a9ef0c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
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.

0 comments on commit 5a9ef0c

Please sign in to comment.