diff --git a/local-deployment/default.conf b/local-deployment/default.conf index e837294cfaca1ea19814bcdbc0ee59472fb6d22f..aa62dd5d43083148b92d1f469372dd055537dd51 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 c6fb5d7fff55ceebc375843c95f4914dccf4cf9e..0704664b0576ac38ca1cc4d0bdf28b86d3044039 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