initial commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
FROM php:8.3-fpm-alpine
|
||||
|
||||
RUN docker-php-ext-install pcntl sockets
|
||||
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
WORKDIR /app
|
||||
@@ -0,0 +1,9 @@
|
||||
FROM php:8.3-cli-alpine
|
||||
|
||||
RUN apk add --no-cache linux-headers git
|
||||
|
||||
RUN docker-php-ext-install pcntl sockets
|
||||
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
WORKDIR /app
|
||||
@@ -0,0 +1,15 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /app/public;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass api:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user