add dev environment

This commit is contained in:
Andras Bacsai
2023-04-12 21:23:32 +02:00
parent 514976e9e5
commit 928ca44f7d
17 changed files with 162 additions and 17 deletions

View File

@@ -0,0 +1,8 @@
FROM serversideup/php:8.2-fpm-nginx
ARG POSTGRES_VERSION=15
RUN apt-get update && apt-get install -y php-pgsql openssh-client
RUN apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
COPY --chmod=755 docker/dev-ssu/etc/s6-overlay/ /etc/s6-overlay/

View File

@@ -0,0 +1,2 @@
#!/command/execlineb -P
su - webuser -c "php /var/www/html/artisan queue:listen --timeout=600 --rest=1 --memory=512"

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1,8 @@
FROM serversideup/php:8.2-fpm-nginx
ARG POSTGRES_VERSION=15
RUN apt-get update && apt-get install -y php-pgsql openssh-client
RUN apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
COPY --chmod=755 docker/dev-ssu/etc/s6-overlay/ /etc/s6-overlay/

View File

@@ -0,0 +1,2 @@
#!/command/execlineb -P
su - webuser -c "php /var/www/html/artisan queue:listen"

View File

@@ -0,0 +1 @@
longrun