Docker: docker-compose.yml file of nginx+mariadb+php+redis
<p>I want to write a docker-compose.yml of nginx+mariadb+php+redis,<br>
I read the documentation about compose-file,url:    <a href="https://docs.docker.com/compose/compose-file/#versioning" rel="nofollow">https://docs.docker.com/compose/compose-file/#versioning</a><br>
format is like this:</p>

<pre><code>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
</code></pre>

<p>But I don't know how to write the compose-file of nginx+mariadb+php+redis,I want to reference some examples.And,I use the official images of Docker Hub,url: <a href="https://hub.docker.com/explore/" rel="nofollow">https://hub.docker.com/explore/</a>   </p>

<p>**ps:**software version:<br>
OS:centos7.2<br>
nginx:latest<br>
php:latest<br>
mariadb:latest<br>
redis:latest </p>