Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
7285e334
Commit
7285e334
authored
Aug 21, 2015
by
Mahmoud Zalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the docker compose file and the settings
parent
a5954594
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
0 deletions
+79
-0
docker-compose.yml
docker/docker-compose.yml
+54
-0
default
docker/settings/nginx/default
+25
-0
No files found.
docker/docker-compose.yml
0 → 100644
View file @
7285e334
# PHP + NGINX Container #----------------------------------
phpn-ginx
:
image
:
mahmoudz/lara-phpnginx
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
# MySQL Container #----------------------------------------
mysql
:
image
:
mahmoudz/lara-mysql
container_name
:
mysql
ports
:
-
"
3306:3306"
volumes_from
:
-
mysql-data
environment
:
MYSQL_DATABASE
:
laravel-database
MYSQL_USER
:
root
MYSQL_PASSWORD
:
pass
privileged
:
true
# MySQL Data Volume Container #----------------------------
mysql-data
:
image
:
mahmoudz/lara-data
container_name
:
mysql-data
volumes
:
-
/var/lib/mysql
# Redis Container #----------------------------------------
redis
:
image
:
mahmoudz/lara-redis
container_name
:
redis
ports
:
-
"
6379:6379"
privileged
:
true
# Beanstalkd Container #-----------------------------------
beanstalkd
:
image
:
mahmoudz/lara-beanstalkd
container_name
:
beanstalkd
ports
:
-
"
11300:11300"
privileged
:
true
#----------------------------------------------------------
docker/settings/nginx/default
0 → 100644
View file @
7285e334
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/public;
index index.php index.html index.htm;
server_name localdock localdock.dev;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment