Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- ### Applications Code Container #############################
- applications:
- image: tianon/true
- volumes:
- - ../jm/:/var/www/
- ### Workspace Utilities Container ###########################
- workspace:
- build:
- context: ./workspace
- args:
- - INSTALL_XDEBUG=false
- - INSTALL_MONGO=false
- - INSTALL_NODE=true
- - INSTALL_YARN=false
- - INSTALL_DRUSH=false
- - INSTALL_AEROSPIKE_EXTENSION=false
- - INSTALL_V8JS_EXTENSION=false
- - COMPOSER_GLOBAL_INSTALL=true
- - INSTALL_WORKSPACE_SSH=false
- - INSTALL_LARAVEL_ENVOY=false
- - PUID=1000
- - PGID=1000
- - NODE_VERSION=stable
- - YARN_VERSION=latest
- - TZ=Europe/Amsterdam
- volumes_from:
- - applications
- extra_hosts:
- # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
- - "dockerhost:10.0.75.1"
- ports:
- - "2222:22"
- tty: true
- ### PHP-FPM Container #######################################
- php-fpm:
- build:
- context: ./php-fpm
- args:
- - INSTALL_XDEBUG=false
- - INSTALL_SOAP=false
- - INSTALL_MONGO=false
- - INSTALL_ZIP_ARCHIVE=false
- - INSTALL_BCMATH=false
- - INSTALL_MEMCACHED=false
- - INSTALL_OPCACHE=false
- - INSTALL_AEROSPIKE_EXTENSION=false
- - CODEIGNITER=false
- dockerfile: Dockerfile-70
- volumes_from:
- - applications
- expose:
- - "9000"
- links:
- - workspace
- extra_hosts:
- # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
- - "dockerhost:10.0.75.1"
- environment:
- # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel`
- - PHP_IDE_CONFIG=serverName=laravel
- ### Nginx Server Container ##################################
- nginx:
- build:
- context: ./nginx
- args:
- - PHP_UPSTREAM=php-fpm
- volumes_from:
- - applications
- volumes:
- - ./logs/nginx/:/var/log/nginx
- - ./nginx/sites/:/etc/nginx/sites-available
- ports:
- - "80:80"
- - "443:443"
- links:
- - php-fpm
- ### MySQL Container #########################################
- mysql:
- build:
- context: ./mysql
- args:
- - MYSQL_DATABASE=jm
- - MYSQL_USER=root
- - MYSQL_PASSWORD=root
- - MYSQL_ROOT_PASSWORD=root
- volumes:
- - mysql:/var/lib/mysql
- ports:
- - "3306:3306"
- ### Volumes Setup ###########################################
- volumes:
- mysql:
- driver: "local"
- sessions: ## nothing is connected to this (- ./data/sessions:/sessions)
- driver: "local"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement