Servicii pe docker cu diverse aplicatii: python, node, php, .net
This commit is contained in:
4
docker/.gitignore
vendored
4
docker/.gitignore
vendored
@@ -1,4 +0,0 @@
|
||||
/vendor
|
||||
/node_modules
|
||||
.env
|
||||
.DS_Store
|
||||
5
docker/dotnet/Docker
Normal file
5
docker/dotnet/Docker
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
EXPOSE 8088
|
||||
ENTRYPOINT ["dotnet", "SimpleDotnetServer.dll"]
|
||||
22
docker/nginx/default.conf
Normal file
22
docker/nginx/default.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
root /var/www/src;
|
||||
index index.php index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user