From: Kai Moritz Date: Sun, 19 Oct 2025 11:54:12 +0000 (+0200) Subject: Added a docker-setup to serve the combined data during development X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=363a0922a80b3daa96759d3aeb0e2ae3dfe0e79f;p=website Added a docker-setup to serve the combined data during development * The site-content is now spearated from frontend itself. * Therefore, a setup for Docker-Compose was added for development, that serves the combined data. --- diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..13085442 --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/juplo.de b/juplo.de index 0c2a33a7..816e466a 160000 --- 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 index 00000000..a2910351 --- /dev/null +++ b/nginx.conf @@ -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; + } +} +