Prepare and publish Docker container
This commit is contained in:
parent
eca91fc94d
commit
deb0156c1b
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
*.md
|
||||||
|
*.Dockerfile
|
||||||
|
.git
|
||||||
|
.dockerignore
|
@ -1,2 +0,0 @@
|
|||||||
FROM nginx:alpine-slim
|
|
||||||
COPY . /data
|
|
4
nginx.Dockerfile
Normal file
4
nginx.Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM nginx:mainline-alpine-slim
|
||||||
|
|
||||||
|
COPY . /site
|
||||||
|
COPY ./nginx.conf /etc/nginx/conf.d/site.conf
|
17
nginx.conf
17
nginx.conf
@ -0,0 +1,17 @@
|
|||||||
|
server {
|
||||||
|
index index.php index.html;
|
||||||
|
server_name fredboniface.co.uk.local;
|
||||||
|
error_log /var/log/nginx/error.log;
|
||||||
|
access_log /var/log/nginx/access.log;
|
||||||
|
root /site;
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
try_files $uri =404;
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass localhost:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
}
|
||||||
|
}
|
3
php.Dockerfile
Normal file
3
php.Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM php:8.2.1-fpm-alpine
|
||||||
|
|
||||||
|
COPY . /site
|
Loading…
Reference in New Issue
Block a user