2017-03-08 15:20:05 +00:00
# Docker Setup
These are the official Docker files for master branch and the current release packages.
## Volumes
2023-09-09 16:26:04 +00:00
These containers are set up so that you can mount your freeswitch configuration from a host or data volume container.
2017-03-08 15:20:05 +00:00
To mount freeswitch Configuration
```
-v $(pwd)/configuration:/etc/freeswitch
```
To mount tmp directory for storing recordings, etc
```
-v $(pwd)/tmp:/tmp
```
The container also has a healthcheck where it does a fs_cli status check to make sure the freeswitch service is still running.
2023-09-09 16:26:04 +00:00
## Ports
2017-03-08 15:20:05 +00:00
2023-09-09 16:26:04 +00:00
The container should be run with host networking using `docker run --network host ...` .
2017-03-08 15:20:05 +00:00
2023-09-09 16:26:04 +00:00
If you prefer to (or for some reason must) publish individual ports via `--publish/-p` , refer to this [issue ](https://github.com/moby/moby/issues/11185 ) and this [potential workaround ](https://hub.docker.com/r/bettervoice/freeswitch-container/ ) regarding using docker with large port ranges.
2017-03-08 15:20:05 +00:00
2023-09-09 16:26:04 +00:00
The following ports will be used, depending upon your specific configuration:
2017-03-08 15:20:05 +00:00
2023-09-09 16:26:04 +00:00
- 5060/tcp, 5060/udp, 5080/tcp, 5080/udp - SIP signaling
- 5061/tcp, 5081/tcp - SIPS signaling
- 5066/tcp, 7443/tcp - WebSocket signaling
- 8021/tcp - the Event Socket
- 16384-32768/udp, 64535-65535/udp - media
2017-03-08 15:20:05 +00:00
2017-03-04 00:25:07 +00:00
If you wish to help improve these please submit a pull request at:
2019-10-13 17:46:37 +00:00
https://github.com/signalwire/freeswitch
2017-03-04 00:25:07 +00:00
Thanks,
/b