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 @@ + +
+ + +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