Use Docker to deploy an Lnmp environment. To write a docker-compose.yml of nginx+mariadb+php+redis, look at the official documents and give a format, like this:
version: '2' services: web: build: . ports: - "5000:5000" volumes: - .:/code networks: - front-tier - back-tier redis: image: redis volumes: - redis-data:/var/lib/redis networks: - back-tier volumes: redis-data: driver: local networks: front-tier: driver: bridge back-tier: driver: bridge
However, I still don’t know how to write this document after reading it. I have browsed through the basic information found on github, but it is a bit multifarious. I don’t know which one to refer to after reading it, and it is a bit confusing. Please provide some reference examples.
The mirror mentioned above is intended to use the latest version of the official mirror on Docker Hub.
The operating system is centos7.2.
This is pretty good. PHP is basically used in technology stack
It is recommended that you can read this blog.
Should meet your needs