2015-08-21 14:18:18 +02:00
|
|
|
###########################################################
|
|
|
|
# MAINTAINER: Mahmoud Zalt <mahmoud@zalt.me> #
|
|
|
|
###########################################################
|
|
|
|
|
2015-08-21 13:30:25 +02:00
|
|
|
# PHP + NGINX Container #----------------------------------
|
2015-09-21 21:02:51 +02:00
|
|
|
php-nginx:
|
2015-08-21 21:53:35 +02:00
|
|
|
image: laradock/phpnginx:latest
|
2015-08-21 13:30:25 +02:00
|
|
|
container_name: php-nginx
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
|
|
|
- ./settings/nginx:/etc/nginx/sites-available
|
2016-02-17 16:51:23 +01:00
|
|
|
- ../:/var/www
|
2015-08-21 13:30:25 +02:00
|
|
|
- ./logs/nginx:/var/log/nginx
|
|
|
|
links:
|
|
|
|
- mysql
|
|
|
|
- redis
|
|
|
|
privileged: true
|
2016-02-17 16:51:23 +01:00
|
|
|
extra_hosts:
|
|
|
|
- "laravel.dev:xxx.xxx.xxx.xxx"
|
2015-08-21 13:30:25 +02:00
|
|
|
|
|
|
|
# MySQL Container #----------------------------------------
|
|
|
|
mysql:
|
2015-08-21 21:53:35 +02:00
|
|
|
image: laradock/mysql:latest
|
2015-08-21 13:30:25 +02:00
|
|
|
container_name: mysql
|
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
|
|
|
volumes_from:
|
2015-08-21 14:18:18 +02:00
|
|
|
- data
|
2015-08-21 13:30:25 +02:00
|
|
|
environment:
|
2016-02-17 16:51:23 +01:00
|
|
|
MYSQL_DATABASE: homestead
|
|
|
|
MYSQL_USER: homestead
|
|
|
|
MYSQL_PASSWORD: secret
|
2015-08-21 13:30:25 +02:00
|
|
|
privileged: true
|
|
|
|
|
|
|
|
# Redis Container #----------------------------------------
|
|
|
|
redis:
|
2015-08-21 21:53:35 +02:00
|
|
|
image: laradock/redis:latest
|
2015-08-21 13:30:25 +02:00
|
|
|
container_name: redis
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
2015-08-21 14:18:18 +02:00
|
|
|
volumes_from:
|
|
|
|
- data
|
|
|
|
volumes:
|
|
|
|
- ./logs/redis:/var/log/redis
|
|
|
|
restart: always
|
2015-08-21 13:30:25 +02:00
|
|
|
privileged: true
|
|
|
|
|
2015-08-21 14:18:18 +02:00
|
|
|
# Data Volume Container #----------------------------------
|
|
|
|
data:
|
2015-08-21 21:53:35 +02:00
|
|
|
image: laradock/data:latest
|
2015-08-21 14:18:18 +02:00
|
|
|
container_name: data
|
|
|
|
volumes:
|
|
|
|
- /var/lib/mysql
|
|
|
|
- /var/lib/redis
|
|
|
|
|
2015-09-28 17:30:23 +02:00
|
|
|
# Beanstalkd Container #-----------------------------------
|
|
|
|
# beanstalkd:
|
|
|
|
# image: laradock/beanstalkd:latest
|
|
|
|
# container_name: beanstalkd
|
|
|
|
# ports:
|
|
|
|
# - "11300:11300"
|
|
|
|
# privileged: true
|
|
|
|
|
2015-08-21 13:30:25 +02:00
|
|
|
#----------------------------------------------------------
|