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
53f10329
Commit
53f10329
authored
Mar 17, 2017
by
Mahmoud Zalt
Committed by
GitHub
Mar 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #673 from cabrerabywaters/PHP_WORKER
Php worker
parents
875ec23a
f2805bca
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
docker-compose.yml
docker-compose.yml
+9
-0
Dockerfile
php-worker/Dockerfile
+39
-0
supervisord.conf
php-worker/supervisord.conf
+9
-0
No files found.
docker-compose.yml
View file @
53f10329
...
...
@@ -73,6 +73,15 @@ services:
environment
:
-
PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
### PHP Worker Container #####################################
php-worker
:
build
:
context
:
./php-worker
volumes_from
:
-
applications
depends_on
:
-
workspace
### Nginx Server Container ##################################
nginx
:
...
...
php-worker/Dockerfile
0 → 100644
View file @
53f10329
#
#--------------------------------------------------------------------------
# Image Setup
#--------------------------------------------------------------------------
#
# To take a look at the'php-worker' base Image, visit its DockerHub page
# https://hub.docker.com/r/nielsvdoorn/laravel-supervisor/
#
FROM
nielsvdoorn/laravel-supervisor
#
#--------------------------------------------------------------------------
# Optional Supervisord Configuration
#--------------------------------------------------------------------------
#
# Modify the ./supervisor.conf file to match your App's requirements.
# Make sure you rebuild your container with every change.
#
COPY
supervisord.conf /etc/supervisor/conf.d/supervisord.conf
#
#--------------------------------------------------------------------------
# Optional Software's Installation
#--------------------------------------------------------------------------
#
# If you need to modify this image, feel free to do it right here.
#
# -- Your awesome modifications go here -- #
#
#--------------------------------------------------------------------------
# Final Touch
#--------------------------------------------------------------------------
#
RUN
rm
-r
/var/lib/apt/lists/
*
WORKDIR
/etc/supervisor/conf.d/
php-worker/supervisord.conf
0 → 100644
View file @
53f10329
[
supervisord
]
nodaemon
=
true
[
program
:
laravel
-
worker
]
process_name
=%(
program_name
)
s_
%(
process_num
)
02
d
command
=
php
/
var
/
www
/
laravel
/
artisan
queue
:
work
--
sleep
=
3
--
tries
=
3
--
daemon
autostart
=
true
autorestart
=
true
numprocs
=
8
redirect_stderr
=
true
\ No newline at end of file
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