Anaconda Enterprise: Documentation

# Configuring a remote MongoDB (AEN 4.1.3)

To configure your remote database to work with AEN server:

1. Stop the server, gateway and compute nodes:

       sudo service wakari-server stop
       sudo service wakari-gateway stop
       sudo service wakari-compute stop

2. Open the `/opt/wakari/wakari-server/etc/wakari/config.json` file and create the MONGO_URL key. For the value parameter, add the database information.

   The final file should read:

       {
         "MONGO_URL": "mongodb://MONGO-USER:MONGO-PASSWORD@MONGO-URL:MONGO-PORT",
         "WAKARI_SERVER": "http://YOUR-IP",
         "USE_SES": false,
         "CDN": "http://YOUR-IP/static/",
         "ANON_USER": "anonymous"
       }

   For more information about configuration keys, see Using configuration files.

3. Migrate the data from the former database into the new one. For more information, see the MongoDB documentation website.

4. After migration, restart the nodes:

       sudo service wakari-server start
       sudo service wakari-gateway start
       sudo service wakari-compute start