From 236995fc577cc3c5f555da98a86bffe04b8df3f9 Mon Sep 17 00:00:00 2001 From: Jake R Date: Fri, 17 May 2024 23:38:09 -0700 Subject: [PATCH] First pass on whitney site --- pws/.gitignore | 1 + pws/Dockerfile | 8 ++++++++ pws/README.md | 8 ++++++++ pws/docker-compose_BLANKED.yml | 18 ++++++++++++++++++ pws/nginx/nginx.conf | 15 +++++++++++++++ pws/website/index.html | 13 +++++++++++++ pws/website/script.js | 1 + pws/website/styles.css | 0 8 files changed, 64 insertions(+) create mode 100644 pws/.gitignore create mode 100644 pws/Dockerfile create mode 100644 pws/README.md create mode 100644 pws/docker-compose_BLANKED.yml create mode 100644 pws/nginx/nginx.conf create mode 100644 pws/website/index.html create mode 100644 pws/website/script.js create mode 100644 pws/website/styles.css diff --git a/pws/.gitignore b/pws/.gitignore new file mode 100644 index 0000000..449eea0 --- /dev/null +++ b/pws/.gitignore @@ -0,0 +1 @@ +docker-compose.yml diff --git a/pws/Dockerfile b/pws/Dockerfile new file mode 100644 index 0000000..055cf4c --- /dev/null +++ b/pws/Dockerfile @@ -0,0 +1,8 @@ +FROM nginx:alpine + +COPY nginx/nginx.conf /etc/nginx/nginx.conf +COPY website /usr/share/nginx/html + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/pws/README.md b/pws/README.md new file mode 100644 index 0000000..bc95af8 --- /dev/null +++ b/pws/README.md @@ -0,0 +1,8 @@ +# PWS + +This is the official landing webpage for Olomana. + +### Run with Docker + +`docker-compose build && docker-compose up -d` + diff --git a/pws/docker-compose_BLANKED.yml b/pws/docker-compose_BLANKED.yml new file mode 100644 index 0000000..7c43b6d --- /dev/null +++ b/pws/docker-compose_BLANKED.yml @@ -0,0 +1,18 @@ +version: '3' + +networks: + [[TRAEFIK_NETWORK]]: + external: true + +services: + web: + image: homepage + networks: + - [[TRAEFIK_NETWORK]] + build: . + labels: + - traefik.http.routers.homepage.rule=Host(`[[SITE_URL]]`) + - traefik.http.routers.homepage.tls=true + - traefik.http.routers.homepage.tls.certresolver=lets-encrypt + - traefik.http.services.homepage.loadbalancer.server.port=[[NGINX_INTERNAL_PORT]] + - traefik.port=[[NGINX_INTERNAL_PORT]] \ No newline at end of file diff --git a/pws/nginx/nginx.conf b/pws/nginx/nginx.conf new file mode 100644 index 0000000..f18f499 --- /dev/null +++ b/pws/nginx/nginx.conf @@ -0,0 +1,15 @@ +events { + worker_connections 1024; +} + +http { + server { + listen 81; + server_name localhost; + + location / { + root /usr/share/nginx/html; + index index.html; + } + } +} \ No newline at end of file diff --git a/pws/website/index.html b/pws/website/index.html new file mode 100644 index 0000000..233af81 --- /dev/null +++ b/pws/website/index.html @@ -0,0 +1,13 @@ + + + + + Simple Webpage + + + +

Hello, World!

+

This is a simple HTML/CSS/JS webpage.

+ + + \ No newline at end of file diff --git a/pws/website/script.js b/pws/website/script.js new file mode 100644 index 0000000..ae9e3a9 --- /dev/null +++ b/pws/website/script.js @@ -0,0 +1 @@ +console.log("Hello, World!"); \ No newline at end of file diff --git a/pws/website/styles.css b/pws/website/styles.css new file mode 100644 index 0000000..e69de29