Run Group Office Collaboration Suite in Docker 🌱

What is Group Office?

Group-Office is an enterprise CRM and groupware tool. Collaborate, Share projects, calendars, files and e-mail online with co-workers and clients. Easy to use and fully customizable. -https://www.group-office.com/

Installing Docker

  1. Log into the Linux based device
  2. Run the following commands in the terminal
    # install prerequisites
    sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
    # add docker gpg key
    curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
    # add docker software repository
    sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
    # install docker
    sudo apt install docker-ce docker-compose containerd.io -y
    # enable and start docker service
    sudo systemctl enable docker && sudo systemctl start docker
    # add the current user to the docker group
    sudo usermod -aG docker $USER
    # reauthenticate for the new group membership to take effect
    su - $USER

Running Group Office

  1. Continue with the following commands in a terminal window
    # create working directories
    mkdir ~/docker/group-office/{data,conf,share,tmp} -p && mkdir ~/docker/mariadb -p
    # create a config.php file
    sudo touch ~/docker/group-office/conf/config.php
    # set ownership on the working directories
    sudo chown "$USER":"$USER" ~/docker -R
    # allow the container to write to working directories
    sudo chmod a+rwx -R ~/docker/group-office
    # create containers network
    docker network create containers
    # run the mariadb docker container
    docker run -d --name mariadb --network containers -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=groupoffice_rw -e MYSQL_PASSWORD=Grou40ff1c3 -e MYSQL_DATABASE=group_office -v ~/docker/mariadb:/var/lib/mysql -p 3306:3306 --restart=unless-stopped mariadb:latest
    # run the group-office docker image
    docker run -d --name group-office --network containers -e MYSQL_USER=groupoffice_rw -e MYSQL_PASSWORD=Grou40ff1c3 -e MYSQL_DATABASE=group_office -e MYSQL_HOST=mariadb -p 9000:80 -v ~/docker/group-office/conf:/etc/groupoffice -v ~/docker/group-office/data:/var/lib/groupoffice -v ~/docker/group-office/tmp:/tmp/groupoffice --restart=unless-stopped intermesh/groupoffice
  2. Open a web browser and navigate to http://DNSorIP:9000
  3. Click Continue at the welcome screen
  4. Click Continue at the system requirements check
  5. Complete the database configuration using the values below

    Database user=groupoffice_rw
    Database password=Grou40ff1c3
    Database name=group_office
    Database hostname=mariadb
    Database port=3306

  6. Click Continue
  7. Create an administrator account by entering an Email, Username and password > Select a Language > Click Install
  8. Once the installation completes, click Continue
  9. Login using the username and password setup earlier
  10. If prompted, enter and confirm a new password
  11. Welcome to Group Office

Documentation: https://github.com/Intermesh/docker-groupoffice/