From ac101f4281ad8e2d86f2b3951952ba76d03c7cc0 Mon Sep 17 00:00:00 2001
From: Korbinian <korbinian@remeeting.com>
Date: Sat, 13 May 2023 22:04:25 +0200
Subject: [PATCH] Adjusted compose files for on-prem use

---
 local-deployment/default.conf       | 4 ++++
 local-deployment/docker-compose.yml | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/local-deployment/default.conf b/local-deployment/default.conf
index e837294..aa62dd5 100644
--- a/local-deployment/default.conf
+++ b/local-deployment/default.conf
@@ -8,18 +8,22 @@ server {
     location / {
         proxy_pass http://frontend:80;
         proxy_pass_request_headers on;
+        proxy_cache off;
+        add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
     }
 
     # Proxy requests to /api to the backend server
     location /api/ {
         proxy_pass http://server:8000/;
         proxy_pass_request_headers on;
+        proxy_cache off;
     }
 
     # Proxy requests to /files to the CDN
     location /files/ {
         proxy_pass http://cdn:80/;
         proxy_pass_request_headers on;
+        proxy_cache off;
     }
 
 }
diff --git a/local-deployment/docker-compose.yml b/local-deployment/docker-compose.yml
index c6fb5d7..0704664 100644
--- a/local-deployment/docker-compose.yml
+++ b/local-deployment/docker-compose.yml
@@ -19,12 +19,17 @@ services:
       - 9200:9200
   frontend:
     build: "../../orchive3-frontend/."
+    volumes:
+      - ../../orchive3-frontend:/app
+      #- ../../orchive3-frontend/dist:/usr/share/nginx/html
   cdn:
     image: nginx
     volumes:
       - ./files:/usr/share/nginx/html
   server:
     build: "../../orchive3-backend/."
+    volumes:
+      - ../../orchive3-backend:/usr/src/app
     environment:
       - ELASTICSEARCH_HOST=database:9200
       - ROOT_PATH=/api
@@ -36,3 +41,5 @@ services:
       - ./default.conf:/etc/nginx/conf.d/default.conf
     ports:
       - "80:80"
+  scripts:
+    build: ../scripts
\ No newline at end of file
-- 
GitLab