From 058c05a1f72f77276c21c53f07c4adc8d43f0cf3 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 18 Apr 2021 04:49:05 +0200 Subject: [PATCH] Fix permission issues --- docker/docker-compose.yml | 8 ++++---- nginx/nginx.conf | 10 +++++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 4ee69ee..f7408d3 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -7,9 +7,9 @@ services: - database.env volumes: - database-data:/var/lib/postgresql/data - - ./database-export/:/opt/exports + - ./database-export/:/opt/exports # To make this work, run chmod 777 ./database-exports ports: - - 127.0.0.1:5432:5432 + - 5432:5432 redis: container_name: redis image: redis @@ -17,7 +17,7 @@ services: volumes: - ./redis/redis.conf:/usr/local/etc/redis/redis.conf ports: - - 127.0.0.1:32773:6379 + - 32773:6379 volumes: - database-data: \ No newline at end of file + database-data: diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 76a77d3..6302691 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -108,6 +108,9 @@ http { proxy_pass http://backend_GET; } + location /database/ { + alias /home/sbadmin/sponsor/docker/database-export/; + } location /database { proxy_pass http://backend_db; } @@ -118,9 +121,10 @@ http { alias /home/sbadmin/test-db/database.db; } - location = /database/sponsorTimes.csv { - alias /home/sbadmin/sponsorTimes.csv; - } + #location = /database/sponsorTimes.csv { + # alias /home/sbadmin/sponsorTimes.csv; + #} + #location /api/voteOnSponsorTime { # return 200 "Success";