Add other services
Pre-requisite
You should read the documentation about the already available services
This guide will show you how to add more services. In the following example we will be adding MongoDB as a service, but these steps could be modified to install other services as well.
Adding other services requires more RAM and CPU power. Please make sure the host machine meets the hardware requirements for running all the services.
1. Add the configuration:
Select configuration parameters for the MongoDB service.
Configuration Variable Name | Description |
---|---|
username | the username of the root user in the MongoDB |
password | the password of the root user in the MongoDB |
port | the mapped port on the host machine (default is 27017) |
datapath | path on host machine to mount the data from the MongoDB container |
Open the file /deploy/services/services.yml
and add the configuration for MongoDB:
2. Add the script:
The next step is to add the script that sets up the MongoDB container with the configuraiton.
Create new file named /deploy/services/mongodb.js
and add the following code:
3. Run the script:
Go to the directory /deploy/services/
and run services script with the following commands:
The MongoDB should now be available on services.foo.com:<port>.