Giter VIP home page Giter VIP logo

cslant / lemp-docker Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 6.0 206 KB

:whale: This is a simple Docker Compose workflow that sets up a LEMP network of containers for local development. This also allows customizing the optional PHP version :elephant:

Shell 27.89% Dockerfile 25.39% PHP 43.40% JavaScript 3.32%
docker docker-compose docker-image docker-lemp docker-lemp-phpmyadmin docker-nginx docker-nginx-php laravel-docker lemp lemp-stack

lemp-docker's People

Contributors

dependabot[bot] avatar tanhongit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lemp-docker's Issues

Change the configuration to set the latest PHP version

It's necessary to change the configuration so that the latest PHP version will automatically be selected as the default value, not the current 8.2 version.

build:
      context: .
      dockerfile: ./docker/Dockerfile
      args:
          - PHP_VERSION_SELECTED=${PHP_VERSION_SELECTED:-8.2}
          - PHP_VERSION=${PHP_VERSION_SELECTED:-8.2}

Update GitHub Actions to use Node.js 16 instead of Node.js 12

Warning:

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: docker/setup-buildx-action@v1, docker/login-action@v1, docker/metadata-action@v3, docker/build-push-action@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

I needed to update the compatible versions in the GitHub action to eliminate the above warning.

Optimize Dockerfile

We need to re-optimize the Dockerfile for the purpose of reducing layers, the number of processes.

Add default ports for docker-compose file

Currently, the ports and app names in the docker-compose file are being called directly from the environment variables in the .env file.

This is very detrimental because in some cases users do not pay attention to this configuration request and ignore it to proceed with running the build command.
In that case, it will cause an error because the ports are unknown.

So I need a condition that if the environment variables do not exist, I will get the default port to avoid the above error.

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.