Docker: Find some examples of docker-compose.yml files

  docker, question

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:
Link here:https://docs.docker.com/compose/compose-file/#versioning

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.

Remarks:
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
https://github.com/kasperisager/php-dockerized

It is recommended that you can read this blog.
http://avnpc.com/pages/build-php-develop-env-by-docker

Should meet your needs