Coder Social home page Coder Social logo

docker-nginx-php-apache-mysql-nodejs-phpmyadmin's Introduction

nginx + PHP-FPM + Apache + MySQL + NodeJS + phpMyAdmin with Docker-Compose

Initial configuration to install a web environment with the following images:

  • nginx: reverse-proxy for Apache and PhpMyAdmin
  • PHP-FPM 8.2 with composer
  • Apache (httpd): as a proxy for requests to PHP-FPM
  • MySQL 8: default access credentials are defined in .env file
  • NodeJS 21
  • phpMyAdmin 5.2: it will be available on the port 81, e.g. http://localhost:81

Installation

Prerequisites

  • Docker 24.0
  • Docker Compose 2.22

Build and Run

  1. Run make build to build the Docker images
  2. Run make up to run the Docker containers

All the commands above can be run with one command:

make build && make up

As a result, the application will be available at http://localhost/.

Stopping the Application

To stop the application, run make down.

docker-nginx-php-apache-mysql-nodejs-phpmyadmin's People

Contributors

igorsuhinin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-nginx-php-apache-mysql-nodejs-phpmyadmin's Issues

ERRO build service web

executor failed running [/bin/sh -c apt-get update && apt-get install -y nginx]: exit code: 100
ERROR: Service 'web' failed to build : Build failed

php 8

`FROM php:8.0-fpm

RUN apt-get update > /dev/null && apt-get install -y
git
unzip
libjpeg-dev
libxpm-dev
libwebp-dev
libfreetype6-dev
libjpeg62-turbo-dev
libpng-dev
zlib1g-dev
libicu-dev
jpegoptim
g++
libxrender1
libfontconfig1
nano
cron
acl

RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/

RUN docker-php-ext-configure intl
&& docker-php-ext-install intl > /dev/null
&& docker-php-ext-install zip > /dev/null
&& docker-php-ext-install bcmath > /dev/null
&& docker-php-ext-install gd > /dev/null

RUN pecl install mcrypt-1.0.4
&& docker-php-ext-enable mcrypt

RUN docker-php-ext-install pdo pdo_mysql

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer > /dev/null

RUN usermod -u 1000 www-data

RUN chown -R www-data:1000 /var/www/html

USER www-data

WORKDIR /var/www`

error:

executor failed running [/bin/sh -c docker-php-ext-configure intl && docker-php-ext-install intl > /dev/null && docker-php-ext-install zip > /dev/null && docker-php-ext-install bcmath > /dev/null && docker-php-ext-install gd > /dev/null]: exit code: 1
ERROR: Service 'php' failed to build : Build failed

Error when run command: docker-compose up -d

Hi You
I installed docker, docker-compose on mac osx 10.13.6, But I run command docker-compose up -d . I get error
E: There are problems and -y was used without --force-yes ERROR: Service 'web' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y nginx' returned a non-zero code: 100

I try to changed config file docker-compose.yml at ports 81:81. But I can not resolve it. Please help me to check it, Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.