Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

GreenMeteor/humhub-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerfile for HumHub Installation

This Dockerfile sets up a PHP 8.3.11 Apache environment and installs HumHub 1.16.2.

Important

This Dockerfile & the Docker Image that is created will be discontinued as of September 12th 2024.

Dockerfiles

Operating Systems Status
Linux Docker Codacy Badge
MacOS TBA
Windows TBA

Instructions:

  1. Base Image: Uses php:8.3.11-apache as the base image.

  2. Dependencies Installation:

    • Installs necessary packages via apt-get.
    • Configures PHP extensions for gd, mysqli, pdo, zip, intl, ldap, pgsql, mbstring, exif, imagick, apcu, and more.
  3. HumHub Installation:

    • Downloads HumHub version 1.16.2 using curl.
    • Unzips the downloaded file to /tmp/humhub_folder.
    • Copies HumHub contents to /var/www/html.
    • Adjusts ownership and permissions for /var/www/html.
    • Cleans up downloaded files and temporary folders.
  4. Custom Apache Configuration:

    • Copies custom Apache configuration files to the appropriate locations.
    • Enables the custom configuration.
  5. Exposing Ports:

    • Exposes ports 80 and 443 for HTTP and HTTPS traffic.
  6. Working Directory:

    • Sets /var/www/html as the working directory.
  7. Healthcheck:

    • Includes a healthcheck to monitor the status of the container.
  8. Starting Service:

    • Initiates the Apache & Cron services using apache2-foreground & service cron start.

Building the Image:

Build the Docker image using the provided Dockerfile:

docker build -t humhub-docker .

If you enjoy our work please consider donating.