cslant / lemp-docker Goto Github PK
View Code? Open in Web Editor NEW: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:
: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:
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.
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.
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}
We need to re-optimize the Dockerfile for the purpose of reducing layers, the number of processes.
Same as this issue, I think we don't need to show all the Laravel sources in config docker!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.