RestComm / Restcomm-Docker

Docker Image for RestComm at https://github.com/RestComm/RestComm-Connect
http://www.restcomm.com/
GNU Affero General Public License v3.0
14 stars 31 forks source link

Add Docker Compose support to run Restcomm with MySQL optionally #108

Open agafox opened 7 years ago

agafox commented 7 years ago

It will be good to add Docker Compose support as long as it's recommended to run Restcomm with MySQL instead of HSQL.

AShabana commented 7 years ago

regard docker compose , you can use this file as docker-compose-yml


version: '2'
services:
restcomm:
image: restcomm/restcomm
environment:
- STATIC_ADDRESS="$your_ip"
env_file:
- "/restcomm/conf/restcomm_local"
volumes:
- /var/log/restcomm:/var/log/restcomm
- /restcomm/restcomm_workspace/restcomm/cache:/opt/Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/cache
- /restcomm/restcomm_workspace/mms/log:/opt/Restcomm-JBoss-AS7/mediaserver/log
- /restcomm/restcomm_workspace/restcomm/recordings:/opt/Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/recordings
- /restcomm/restcomm_workspace/restcomm/data:/opt/Restcomm-JBoss-AS7/standalone/deployments/restcomm.war/WEB-INF/data/hsql
- /restcomm/restcomm_workspace/rvd/workspace:/opt/Restcomm-JBoss-AS7/standalone/deployments/restcomm-rvd.war/workspace

network_mode: "host"

regard integration with mysql you should able to configure it via env_file,

via below configuration paramters

RCBCONF_ENABLE_MYSQL=true RCBCONF_MYSQL_USER=xxxx RCBCONF_MYSQL_PASSWORD=xxxxxx RCBCONF_MYSQL_HOST=xxxx RCBCONF_MYSQL_SCHEMA=restcomm

agafox commented 7 years ago

@AShabana Great! Would you like to make a PR with your version of docker-compose.yml?

deruelle commented 7 years ago

@agafox @AShabana let's make docker compose actually compose Restcomm Connnect docker image, Restcomm Media Server docker image and the DB (MariaDB or HSQL, hsql being the default for community) Docker image