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
4d8a7982
Commit
4d8a7982
authored
May 18, 2016
by
Mahmoud Zalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create Application Container to hold App code
parent
1574231a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
28 deletions
+38
-28
README.md
README.md
+6
-11
Dockerfile
application/Dockerfile
+7
-0
docker-compose.yml
docker-compose.yml
+25
-17
No files found.
README.md
View file @
4d8a7982
...
...
@@ -87,7 +87,8 @@ docker-compose up nginx mysql redis
-
Memcached
-
Beanstalkd
-
Beanstalkd Console
-
Data Volume
-
Data Volume
*(Databases Data Container)*
-
Application
*(Application Code Container)*
-
Workspace (includes:
`Git`
,
`Vim`
,
`nano`
,
`PHP-CLI 7.0`
,
`cURL`
)
>If you can't find your container, build it yourself and add it to this list. Contributions are welcomed :)
...
...
@@ -186,21 +187,15 @@ DB_HOST=xxx.xxx.xxx.xxx
<br>
*Make sure you are in the `docker` folder before running the `docker-compose` command.*
> Running PHP-FPM, NGINX, MySQL, Redis and the Data Containers
:
**Example:**
Running NGINX, MySQL, Redis and the workspace
:
```
bash
docker-compose up
-d
nginx mysql redis
docker-compose up
-d
nginx mysql redis
Workspace
```
*Note: the PHP-FPM, Application and Data Containers will automatically run.*
Note: you can choose your own combination of software's (containers), another example:
> Running PHP-FPM, NGINX, Postgres, Memcached and the Data Containers:
```
bash
docker-compose up
-d
nginx postgres memcached
```
Supported Containers:
`nginx`
,
`mysql`
,
`redis`
,
`postgres`
,
`mariadb`
,
`memcached`
,
`beanstalkd`
,
`beanstalkd-console`
,
`data`
,
`php-fpm`
,
`workspace`
.
Supported Containers:
`nginx`
,
`workspace`
,
`mysql`
,
`redis`
,
`postgres`
,
`mariadb`
,
`memcached`
,
`beanstalkd`
,
`beanstalkd-console`
,
`data`
,
`php-fpm`
,
`application`
.
<br>
3 - Open your browser and visit your
`{Docker-IP}`
address (
`http://xxx.xxx.xxx.xxx`
).
...
...
application/Dockerfile
0 → 100644
View file @
4d8a7982
FROM
debian:jessie
MAINTAINER
Mahmoud Zalt <mahmoud@zalt.me>
WORKDIR
/var/www/laravel
CMD
["true"]
docker-compose.yml
View file @
4d8a7982
...
...
@@ -2,33 +2,27 @@ version: '2'
services
:
### Nginx Server Container ##################################
nginx
:
build
:
./nginx
volumes_from
:
-
php-fpm
volumes
:
-
./logs/nginx/:/var/log/nginx
ports
:
-
"
80:80"
-
"
443:443"
links
:
-
php-fpm
### PHP-FPM Container #######################################
php-fpm
:
build
:
context
:
./php-fpm
dockerfile
:
Dockerfile-70
volumes_from
:
-
application
volumes
:
-
../:/var/www/laravel
-
./logs/php/:/usr/local/var/log
expose
:
-
"
9000"
### DATA Container ##########################################
### Laravel Application Code Container ######################
application
:
build
:
./application
volumes
:
-
../:/var/www/laravel
### Databases Data Container ################################
data
:
build
:
./data
...
...
@@ -39,6 +33,20 @@ services:
-
/var/lib/redis
-
/var/lib/memcached
### Nginx Server Container ##################################
nginx
:
build
:
./nginx
volumes_from
:
-
application
volumes
:
-
./logs/nginx/:/var/log/nginx
ports
:
-
"
80:80"
-
"
443:443"
links
:
-
php-fpm
### MySQL Container #########################################
mysql
:
...
...
@@ -132,7 +140,7 @@ services:
workspace
:
build
:
./workspace
volumes_from
:
-
data
-
application
tty
:
true
### Add more Containers below ###############################
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