From 774f4bd766a1e5adab15451a96ef2f47239e552b Mon Sep 17 00:00:00 2001 From: simon987 Date: Sun, 13 Jun 2021 08:32:23 -0400 Subject: [PATCH] Initial commit --- docker-compose.yml | 9 +++++++++ nginx.conf | 30 ++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 docker-compose.yml create mode 100644 nginx.conf diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cb569ca --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3" +services: + web: + image: nginx:alpine + ports: + - 5555:80 + volumes: + - ./nginx.conf:/etc/nginx/nginx.conf:ro + - /home/simon/Downloads:/files:ro diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..1f6d9b8 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,30 @@ +user nginx; +worker_processes 1; + +pid /var/run/nginx.pid; + +events { + worker_connections 1024; +} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + access_log off; + error_log off; + + sendfile on; + + keepalive_timeout 65; + + server { + listen 80; + + root /files; + + location / { + autoindex on; + } + } +}