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