Add support services

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-08-27 17:04:53 +02:00
parent 50c09cf936
commit 068f2d8601
7 changed files with 119 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
server {
listen 80;
}

View File

@@ -0,0 +1,14 @@
services:
nginx:
image: nginx
hostname: nginx
restart: unless-stopped
ports:
- 8080:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./config:/etc/nginx/conf.d
- nginx-logs:/var/log/nginx
volumes:
nginx-logs:

32
support/nginx/nginx.conf Normal file
View File

@@ -0,0 +1,32 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}