]> juplo.de Git - website/commitdiff
Added a docker-setup to serve the combined data during development
authorKai Moritz <kai@juplo.de>
Sun, 19 Oct 2025 11:54:12 +0000 (13:54 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 19 Oct 2025 11:54:12 +0000 (13:54 +0200)
* The site-content is now spearated from frontend itself.
* Therefore, a setup for Docker-Compose was added for development, that
  serves the combined data.

docker-compose.yml [new file with mode: 0644]
juplo.de
nginx.conf [new file with mode: 0644]

diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644 (file)
index 0000000..1308544
--- /dev/null
@@ -0,0 +1,8 @@
+services:
+  nginx:
+    image: nginx:mainline-alpine
+    ports:
+      - 8888:80
+    volumes:
+      - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
+      - ./:/usr/share/nginx/html:ro
index 0c2a33a7968402e71cbddd78aed43839dd66e8e0..816e466ad5c78a131649683e51689a4cec522ae1 160000 (submodule)
--- a/juplo.de
+++ b/juplo.de
@@ -1 +1 @@
-Subproject commit 0c2a33a7968402e71cbddd78aed43839dd66e8e0
+Subproject commit 816e466ad5c78a131649683e51689a4cec522ae1
diff --git a/nginx.conf b/nginx.conf
new file mode 100644 (file)
index 0000000..a291035
--- /dev/null
@@ -0,0 +1,30 @@
+server {
+    listen 80;
+    listen [::]:80;
+    server_name localhost;
+
+    index index.html index.htm;
+
+    root /usr/share/nginx/html/juplo.de/dist;
+
+    location / {
+        expires 0;
+    }
+    location /projects/ {
+        alias /usr/share/nginx/html/projects/;
+        expires 0;
+    }
+    location /http-resources/ {
+        alias /usr/share/nginx/html/projects/http-resources/2.0.0/;
+        expires 0;
+    }
+    location /hibernate-maven-plugin/ {
+        alias /usr/share/nginx/html/projects/hibernate-maven-plugin/2.1.2-SNAPSHOT/;
+        expires 0;
+    }
+    location /maven-thymeleaf-skin/ {
+        alias /usr/share/nginx/html/projects/maven-thymeleaf-skin/1.1.0/;
+        expires 0;
+    }
+}
+