From c1e6fee765d9fc35649aa474d1498b3bf6eec8f1 Mon Sep 17 00:00:00 2001 From: arch-fan Date: Wed, 9 Oct 2024 10:26:17 +0200 Subject: [PATCH] Deploy implementation --- docker-compose.yml | 6 ++++++ nginx/nginx.conf | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 docker-compose.yml create mode 100644 nginx/nginx.conf diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0d40bc1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +services: + astrowind: + image: . + container_name: astrowind + ports: + - 8080:8080 \ No newline at end of file diff --git a/nginx/nginx.conf b/nginx/nginx.conf new file mode 100644 index 0000000..4de4ee7 --- /dev/null +++ b/nginx/nginx.conf @@ -0,0 +1,31 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + server { + listen 8080; + server_name _; + + root /usr/share/nginx/html; + index index.html index.htm; + include /etc/nginx/mime.types; + + gzip on; + gzip_min_length 1000; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript; + + error_page 404 /404.html; + location = /404.html { + root /usr/share/nginx/html; + internal; + } + + location / { + try_files $uri $uri/index.html =404; + } + } +} \ No newline at end of file