diff --git a/.gitignore b/.gitignore index 247dda6e..3ea85da3 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,5 @@ system/devices/** !system/devices/readme.md !system/devices/Radius.php !system/devices/MikrotikPppoe.php -!system/devices/MikrotikHotspot.php \ No newline at end of file +!system/devices/MikrotikHotspot.php +/.vs diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..27ff6115 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +# Use the official PHP image with Apache +FROM php:7.4-apache +EXPOSE 80 +# Install necessary PHP extensions +RUN apt-get update && apt-get install -y \ + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libpng-dev \ + zlib1g-dev \ + libzip-dev \ + zip \ + unzip \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install -j$(nproc) gd \ + && docker-php-ext-install pdo pdo_mysql \ + && docker-php-ext-install zip + +# copy contents into directory +COPY . /var/www/html + +# Set appropriate permissions +RUN chown -R www-data:www-data /var/www/html +RUN chmod -R 755 /var/www/html + +# Set working directory +WORKDIR /var/www/html \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..d6bd2619 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,30 @@ +services: + nuxbill: + container_name: nuxbill + pull_policy: always + build: ./ + restart: unless-stopped + ports: + - "80:80" + environment: + TZ: Africa/Nairobi + depends_on: + - mysql + + mysql: + container_name: mysql + image: mysql:8.0 + environment: + MYSQL_ROOT_PASSWORD: "12345678" + MYSQL_DATABASE: "nuxbill" + MYSQL_USER: "nuxbill" + MYSQL_PASSWORD: "12345678" + ports: + - "3306:3306" + +# skip data persistance (if dev testing) +# volumes: +# - mysql_data:/var/lib/mysql + +# volumes: +# mysql_data: \ No newline at end of file diff --git a/install/step5.php b/install/step5.php index bf44338c..5fc1cf97 100644 --- a/install/step5.php +++ b/install/step5.php @@ -13,8 +13,65 @@ - +getMessage(), "\n"; +} +?>
Logo