Skip to content
Snippets Groups Projects
Commit ac101f42 authored by Korbinian's avatar Korbinian
Browse files

Adjusted compose files for on-prem use

parent caff8e8f
No related branches found
No related tags found
No related merge requests found
...@@ -8,18 +8,22 @@ server { ...@@ -8,18 +8,22 @@ server {
location / { location / {
proxy_pass http://frontend:80; proxy_pass http://frontend:80;
proxy_pass_request_headers on; 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 # Proxy requests to /api to the backend server
location /api/ { location /api/ {
proxy_pass http://server:8000/; proxy_pass http://server:8000/;
proxy_pass_request_headers on; proxy_pass_request_headers on;
proxy_cache off;
} }
# Proxy requests to /files to the CDN # Proxy requests to /files to the CDN
location /files/ { location /files/ {
proxy_pass http://cdn:80/; proxy_pass http://cdn:80/;
proxy_pass_request_headers on; proxy_pass_request_headers on;
proxy_cache off;
} }
} }
...@@ -19,12 +19,17 @@ services: ...@@ -19,12 +19,17 @@ services:
- 9200:9200 - 9200:9200
frontend: frontend:
build: "../../orchive3-frontend/." build: "../../orchive3-frontend/."
volumes:
- ../../orchive3-frontend:/app
#- ../../orchive3-frontend/dist:/usr/share/nginx/html
cdn: cdn:
image: nginx image: nginx
volumes: volumes:
- ./files:/usr/share/nginx/html - ./files:/usr/share/nginx/html
server: server:
build: "../../orchive3-backend/." build: "../../orchive3-backend/."
volumes:
- ../../orchive3-backend:/usr/src/app
environment: environment:
- ELASTICSEARCH_HOST=database:9200 - ELASTICSEARCH_HOST=database:9200
- ROOT_PATH=/api - ROOT_PATH=/api
...@@ -36,3 +41,5 @@ services: ...@@ -36,3 +41,5 @@ services:
- ./default.conf:/etc/nginx/conf.d/default.conf - ./default.conf:/etc/nginx/conf.d/default.conf
ports: ports:
- "80:80" - "80:80"
scripts:
build: ../scripts
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment