Compare commits
3 Commits
oskarb-pat
...
oskarb-pat
| Author | SHA1 | Date | |
|---|---|---|---|
| 808b701596 | |||
| b62549ad90 | |||
| f9fb619666 |
@@ -65,6 +65,6 @@ RUN chown -R www-data:www-data storage bootstrap/cache
|
|||||||
FROM nginx:1.27-alpine AS nginx
|
FROM nginx:1.27-alpine AS nginx
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY --from=final /var/www/html/public ./public
|
COPY --from=final /var/www/html/public ./public
|
||||||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
COPY ./docker/nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
||||||
|
|||||||
21
docker/nginx/nginx.conf
Normal file
21
docker/nginx/nginx.conf
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name scheduler.oskarmikael.com;
|
||||||
|
|
||||||
|
root /var/www/html/public;
|
||||||
|
index index.php index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_pass app:9000;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\.ht {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user