My Docker-compose file

version: '2.0'
services:
  php-fpm:
    image: daocloud.io/xss_er/php:php72
    container_name: php72
    restart: always
    ports:
      - "9000"
    volumes:
      - ~/webservice/code:/var/www/app #work dir
      - /tmp/php7-fpm:/var/run/php7-fpm
    networks:
      - back-net
  nginx:
    image: daocloud.io/xss_er/nginx:openresty-server
    container_name: openresty
    restart: always
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ~/webservice/wwwlog:/usr/local/openresty/nginx/logs #logfile dir
      - /tmp/php7-fpm:/var/run/php7-fpm
      - ~/webservice/code:/var/www/app #Code
      - ~/webservice/nginx:/usr/local/openresty/nginx/conf/conf.d
      - ~/webservice/sslAbout:/var/www/ssl/
      - ~/webservice/nginx-conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
    networks:
      - back-net
  redis:
    image: redis:5.0
    container_name: strcpy-redis
    restart: always
    ports:
      - "127.0.0.1:6379:6379"
    volumes:
      - ~/webservice/data/redis:/data
    networks:
      - back-net
  mysql:
    image: daocloud.io/xss_er/db:mysql57
    container_name: strcpy-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=xxxxxx
    restart: always
    ports:
      - "127.0.0.1:3306:3306"
    volumes:
      - ~/webservice/data/mysql:/var/lib/mysql
    networks:
      - back-net
  mongo:
    image: mongo:4.0.5
    container_name: mongo
    restart: always
    ports:
      - 127.0.0.1:27017:27017
    volumes:
      - ~/webservice/data/mongo:/data
    environment:
      MONGO_INITDB_ROOT_USERNAME: xxxx
      MONGO_INITDB_ROOT_PASSWORD: xxxx
    networks:
      - back-net
networks:
  back-net:
    external: true