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
d505871f
Commit
d505871f
authored
Mar 14, 2017
by
Ignacio Cabrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding php-worker for Laravel
parent
1a80385a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
Dockerfile
php-worker/Dockerfile
+39
-0
supervisord.conf
php-worker/supervisord.conf
+9
-0
No files found.
php-worker/Dockerfile
0 → 100644
View file @
d505871f
#
#--------------------------------------------------------------------------
# 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/supervisord.conf
\ No newline at end of file
php-worker/supervisord.conf
0 → 100644
View file @
d505871f
[
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