Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

rconfig/rconfig3-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

rConfig v3 Docker Compose Repository

A repo for to setup containers for the purpose of running rConfig 3 in Docker.
Explore the docs »

Intro · Installation · Usage · Contributing · License · Support

Intro

rConfig v3 is our free open source Network Configuration Management (NCM) software package with superior NCM features and capabilities to help you easily manage configurations on small and lab based heterogenous networks.

rConfig v6 is our flagship professional version of rConfig aimed at high value networks and business operations. rConfig v6 runs natively on many variants of Linux. Within this repo, we have developed docker compose files and related artifacts to allow our customers run rConfig v6 within a Docker environment.

Supported OS for the docker files;

  • Rocky Linux 8.4+
  • RHEL Linux 8.4+
  • CentOS Linux 8.4+

These scripts are not tested on Docker Desktop or Docker for Windows at the time of this commit.

Of course, you may download or clone these files, and edit as you see fit.

Check out our v3 docs help.rconfig.com to learn more.

(back to top)

Installation

We have made it super easy to get started with rConfig v3 on Docker. Follow the steps below to get started.

Prerequisites

Some prerequisites are needed before you get started.

  • OS
    • Any latest version of CentOS, RHEL, Rocky or Ubunutu
  • Docker
    • Any latest version of Docker or Docker-CE
    • Any latest version of Docker Compose

Your OS will need git installed to clone this repo. Internet access for the host VM is assumed also - at least to github and rconfig.com.

Useful URLS

Installation

  1. Clone this repository to a directory of your choosing.

    cd /var/www/html
    git clone https://github.com/rconfig/rconfig3-docker.git
  2. Create top level .env file

    cd rconfig3-docker
    cp .env.example .env
  3. Edit the .env file with your DB and other parameters

    vim .env
    MYSQL_USER=root
    MYSQL_ROOT_PASSWORD=
    MYSQL_PASSWORD=
    MYSQL_DATABASE=tmpdatabase
    MYSQL_PORT=3306
    
    #EXPOSED PORTS
    EXPOSED_APP_PORT=8080
    EXPOSED_APP_HTTPS_PORT=4443
    EXPOSED_DB_PORT=3307
    

If you are uncertain about any of the above, the most important items to change are the MYSQL_ROOT_PASSWORD, DB_PASSWORD and EXPOSED_APP_PORT & EXPOSED_APP_HTTPS_PORT if they are already exposed on your host.

  1. clone the rconfig applications files to the src directory

    cd src
    git clone https://github.com/rconfig/rconfig.git
  2. Bring up the containers. This time we remove the Horizon container from the build as the application init is not complete so will throw errors. (This will take a few minutes the first time)

    docker-compose up -d --build
  3. Once the containers are up and running with no errors from the previous output we can follow the setup wizard to complete the installation. Navigate to http://yourhost:8080/install and follow the steps. The Database Server input field on the Database Setup page must always be mariadb. Note: if the DB installation does not work, login to the php-apache container and apply the correct permissions per below.

    docker-compose exec php-apache /bin/bash
    chwon -R 33 /home/rconfig
  4. When the setup wizard has completed successfully, login to the app by https. https://yourhostname:8443/login.php. You will encounter an SSL error, and you can skip this. It is a

  5. Once the installation completes with no errors, exit the container, bring everything down, and start all containers up. You should hit the login page again to validate everything is working as expected.

    exit
    docker-compose down
    docker-compose up -d --build
  6. your final output from the previous step should look like this

    Creating rconfig3-mariadb ... done
    Creating rconfig3-php-apache ... done

When troubleshooting issues, the following commands are useful. docker ps -a docker logs CONTAINERNAME

Disk or storage permissions issues

If you have permissions issues, such as errors that rConfig cannot write to the storage directory, follow these steps.

  1. Login to the php-apache container

    docker-compose exec php-apache /bin/bash
  2. View the users list and find the id for the www-data account

    more /etc/passwd | grep www
  3. The output should be similar to this

    www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
  4. Simply apply the correct permissions to the /home/rconfig/ directory

    chown -R 33 /home/rconfig/

(back to top)

Usage

The default port for the web app is 8080. So go ahead and login to http://yourhostname.domain.com:8080/install with the rConfig default creds per the documentation for install wizard. When the install is complete the login url will be https://yourhostname.domain.com:8443/login.php

Please refer to the Documentation

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again! 😄

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

This code base for this repository's code is distributed under the MIT License. See LICENSE.txt for more information. rConfig v6 is excluded from this license and repository.

(back to top)

Support

Although we provide this code free and open source, rConfig v3 is only supported with a gold subscription from rConfig.com. You may raise issues in this or the main rConfig repository, but our support teams do not monitor those for support requests.

About

rconfig3 docker repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published