Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
agafox opened this issue Jun 20, 2017 · 3 comments
Open

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

agafox opened this issue Jun 20, 2017 · 3 comments

Comments

@agafox
Copy link

agafox commented Jun 20, 2017

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

@AShabana
Copy link

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
Copy link
Author

agafox commented Jul 10, 2017

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

@deruelle
Copy link
Member

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants