From 5bbe495e82cffdbece87ed4abe3ccc4bbe4dabe2 Mon Sep 17 00:00:00 2001 From: shruub Date: Tue, 6 Jun 2023 23:23:02 +0200 Subject: [PATCH] Add docker deployment --- docker-compose.yml | 13 +++++++++++++ nginx.conf | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 47 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..44c8157 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "3" +services: + webserver: + image: nginx:latest + container_name: blackscreen-nginx + restart: unless-stopped + volumes: + - ./:/usr/share/nginx/html + - ./nginx.conf:/etc/nginx/nginx.conf:ro + networks: + default: + name: npm + external: true diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..0f02784 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,34 @@ + +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; + + access_log off; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + gzip on; + server { + listen 80; + location / { + proxy_intercept_errors on; + error_page 400 500 404 /; + } + } + include /etc/nginx/conf.d/*.conf; +}