Initial Commit

This commit is contained in:
2026-11-11 16:15:55 +00:00
commit 6677a67a3c
560 changed files with 22441 additions and 0 deletions
Binary file not shown.
@@ -0,0 +1,22 @@
version: '3.7'
services:
# Redis should be installed when using Laravel Horizon
horizon:
environment:
PHP_VERSION: ${PHP_VERSION}
build:
context: .
args:
PHP_VERSION: ${PHP_VERSION}
dockerfile: ./docker/php/Dockerfile
volumes:
- ./:/var/www
depends_on:
- mysql
- composer
working_dir: /var/www
entrypoint: ['/var/www/artisan', 'horizon']
user: "${USER_ID}:${GROUP_ID}"
networks:
- laravel
@@ -0,0 +1,10 @@
version: '3.7'
services:
mailhog:
image: mailhog/mailhog
ports:
- "${MAIL_PORT}:1025"
- "${MAILHOG_PORT}:8025"
networks:
- laravel
+2
View File
@@ -0,0 +1,2 @@
# Ignore SQL dumps
*.sql
+27
View File
@@ -0,0 +1,27 @@
server {
listen 80;
listen 443 ssl http2;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
index index.php index.html;
server_name localhost;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/public;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
+13
View File
@@ -0,0 +1,13 @@
ARG PHP_VERSION
FROM php:${PHP_VERSION}-fpm-alpine
WORKDIR /var/www
COPY docker/php/xdebug.ini /usr/local/etc/php/conf.d
RUN apk add --no-cache $PHPIZE_DEPS \
&& pecl install xdebug \
&& docker-php-ext-install pdo pdo_mysql pcntl json posix calendar -j$(getconf _NPROCESSORS_ONLN) \
&& docker-php-ext-enable xdebug \
&& echo "xdebug.remote_host="`/sbin/ip route|awk '/default/ { print $3 }'` >> /usr/local/etc/php/conf.d/xdebug.ini
+6
View File
@@ -0,0 +1,6 @@
[Xdebug]
xdebug.remote_enable = true
xdebug.remote_autostart = false
xdebug.remote_port = 9000
xdebug.remote_connect_back = false
xdebug.idekey = PHPSTORM
@@ -0,0 +1,16 @@
version: '3.7'
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
PMA_HOST: ${DB_HOST}
PMA_PORT: ${DB_PORT}
PMA_USER: ${DB_USERNAME}
PMA_PASSWORD: ${DB_PASSWORD}
UPLOAD_LIMIT: 100000000
ports:
- "${PHPMYADMIN_PORT}:80"
networks:
- laravel
@@ -0,0 +1,21 @@
version: '3.7'
services:
queue:
environment:
PHP_VERSION: ${PHP_VERSION}
build:
context: .
args:
PHP_VERSION: ${PHP_VERSION}
dockerfile: ./docker/php/Dockerfile
volumes:
- ./:/var/www
depends_on:
- mysql
- composer
working_dir: /var/www
entrypoint: ['/var/www/artisan', 'queue:work']
user: "${USER_ID}:${GROUP_ID}"
networks:
- laravel
@@ -0,0 +1,10 @@
version: '3.7'
services:
redis:
image: redis
container_name: redis
ports:
- "${REDIS_PORT:-6379}:6379"
networks:
- laravel
@@ -0,0 +1,21 @@
version: '3.7'
services:
scheduler:
environment:
PHP_VERSION: ${PHP_VERSION}
build:
context: .
args:
PHP_VERSION: ${PHP_VERSION}
dockerfile: ./docker/php/Dockerfile
volumes:
- ./:/var/www
depends_on:
- mysql
- composer
working_dir: /var/www
entrypoint: ['./docker/scheduler/entrypoint.sh']
user: "${USER_ID}:${GROUP_ID}"
networks:
- laravel
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
while true
do
php /var/www/artisan schedule:run --verbose --no-interaction &
sleep 60
done