PHP Classes
elePHPant
Icontem

File: docker/docker-compose.yml

Recommend this page to a friend!
  Classes of Aleksandar Zivanovic  >  PHP Request Action Handler  >  docker/docker-compose.yml  >  Download  
File: docker/docker-compose.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Request Action Handler
Handle HTTP requests to a REST API
Author: By
Last change:
Date: 7 months ago
Size: 800 bytes
 

 

Contents

Class file image Download
version: '3.3'
services:
  nginx:
    container_name: ActionHandlerNGINX
    build: nginx
    links:
      - php
    ports:
      - "80:80"
  php:
    container_name: ActionHandlerPHPFPM
    build: php
    links:
      - mysql
      - redis
      - mongo
    volumes:
      - ..:/app
    ports:
      - "9000:9000"
  mysql:
    container_name: ActionHandlerMySQL
    volumes:
      - ./storage/mysql:/var/lib/mysql
    image: mysql:5.7
    environment:
      - MYSQL_ROOT_PASSWORD=root
    ports:
      - "3306:3306"
    expose:
      -  3306
  redis:
    container_name: ActionHandlerRedis
    image: redis:latest
    ports:
      - "6379:6379"
  mongo:
    container_name: ActionHandlerMongoDB
    volumes:
      - ./storage/mongodb:/data/db
    image: mongo:latest
    ports:
      - "27017:27017"