-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autorestart to Supervisor config
- Loading branch information
Showing
18 changed files
with
117 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole | ||
command = su-exec kool php artisan octane:start | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole --watch | ||
command = su-exec kool php artisan octane:start --watch | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM kooldev/php:8.0-prod | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM kooldev/php:8.0-node | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole | ||
command = su-exec kool php artisan octane:start | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole --watch | ||
command = su-exec kool php artisan octane:start --watch | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM kooldev/php:8.1-prod | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM kooldev/php:8.1-node | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole | ||
command = su-exec kool php artisan octane:start | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole --watch | ||
command = su-exec kool php artisan octane:start --watch | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM kooldev/php:8.2-prod | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM kooldev/php:8.2-node | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole | ||
command = su-exec kool php artisan octane:start | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole --watch | ||
command = su-exec kool php artisan octane:start --watch | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM kooldev/php:8.3-prod | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM kooldev/php:8.3-node | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
FROM {{ $from }} | ||
|
||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
pecl install swoole && \ | ||
docker-php-ext-enable swoole && \ | ||
# cleanup | ||
apk del .build-deps && \ | ||
rm -rf /var/cache/apk/* /tmp/* | ||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | ||
|
||
RUN install-php-extensions swoole | ||
|
||
# RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && \ | ||
# pecl install swoole && \ | ||
# docker-php-ext-enable swoole && \ | ||
# # cleanup | ||
# apk del .build-deps && \ | ||
# rm -rf /var/cache/apk/* /tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[program:nginx] | ||
depends_on = octane | ||
command = nginx -g "daemon off;" | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout | ||
|
||
[program:octane] | ||
command = su-exec kool php artisan octane:start --server=swoole{!! $prod ? '' : ' --watch' !!} | ||
command = su-exec kool php artisan octane:start{!! $prod ? '' : ' --watch' !!} | ||
autorestart = true | ||
stopasgroup = true | ||
stderr_logfile = /dev/stderr | ||
stdout_logfile = /dev/stdout |