cleanup repo

This commit is contained in:
L4RM4ND
2023-02-23 22:33:13 +01:00
parent 4e9a51c207
commit 153ba415ba
182 changed files with 84 additions and 84 deletions

View File

@@ -0,0 +1,3 @@
# References
- https://hub.docker.com/_/nginx

View File

@@ -0,0 +1,29 @@
version: "3"
services:
web:
image: nginx:latest
hostname: nginx
volumes:
- /mnt/docker-volumes/nginx/www-data:/var/www
- /mnt/docker-volumes/nginx/nginx-conf:/etc/nginx/conf.d
- /mnt/docker-volumes/nginx/logs:/var/log/nginx
links:
- php
container_name: nginx
restart: unless-stopped
#labels:
# - traefik.enable=true
# - traefik.http.routers.nginx.rule=Host(`nginx.example.com`)
# - traefik.http.services.nginx.loadbalancer.server.port=80
# - traefik.docker.network=proxy
# # Part for local lan services only
# #- traefik.http.routers.nginx.middlewares=error-pages-middleware@docker
php:
image: php:8-fpm-alpine
hostname: php
volumes:
- /mnt/docker-volumes/nginx/www-data:/var/www
container_name: php
restart: unless-stopped
working_dir: /var/www

View File

@@ -0,0 +1,30 @@
server {
listen 80;
server_name nginx.example.com;
root /var/www/;
index index.html index.php;
#error_page 404 /error/404.html;
client_max_body_size 10M; # change this
set_real_ip_from 172.16.0.0/12;
set_real_ip_from 192.168.0.0/16;
real_ip_header X-Forwarded-For;
proxy_hide_header X-Powered-By;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/etc/nginx/conf.d/php_error.log";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
server_tokens off;
etag off;
}