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 {
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;
}
}
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment