Added basic setup for PHP; HTML file for testing added
This commit is contained in:
@@ -9,11 +9,16 @@ RUN apt-get update && apt-get install -y \
|
||||
php-fpm \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Setting up PHP
|
||||
COPY /etc/* /etc/
|
||||
|
||||
# Setting up MySQL --Will come back to later, as it's not necessary and not playing very well with automation
|
||||
#RUN mysql_secure_installation --use-defaults
|
||||
|
||||
COPY /entrypoint.sh /
|
||||
|
||||
COPY /var/www/* /var/www/
|
||||
|
||||
# Expose Insecure Web, MySQL Server
|
||||
EXPOSE 80 3306
|
||||
CMD ["/bin/sh", "/entrypoint.sh"]
|
||||
16
etc/nginx/conf.d/default.conf
Normal file
16
etc/nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
root /var/www;
|
||||
index index.html;
|
||||
server_name _;
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
|
||||
}
|
||||
}
|
||||
9
var/www/indes.html
Normal file
9
var/www/indes.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Test Page</h1>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user