From 4105aba5e595fa887548a5680209a467e524889c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Verg=C3=A9s?= Date: Thu, 4 Jan 2024 14:01:07 +0100 Subject: [PATCH] update volumes --- docker-compose.yml | 6 ++---- nginx.conf | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9c91ac5..372163f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,8 +14,7 @@ services: app: build: . volumes: - - decidim_uploads:/app/public/uploads - - decidim_storage:/app/storage + - /home/dockerexec/storage:/app/storage restart: ${RESTART_POLICY:-always} environment: - RUN_RAILS=true @@ -50,8 +49,7 @@ services: sidekiq: build: . volumes: - - decidim_uploads:/app/public/uploads - - decidim_storage:/app/storage + - /home/dockerexec/storage:/app/storage restart: ${RESTART_POLICY:-always} environment: - DATABASE_URL=${DATABASE_URL:-postgres://postgres:decidim@db/decidim} diff --git a/nginx.conf b/nginx.conf index 76f3372..c503b0a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -18,11 +18,11 @@ server { keepalive_timeout 5; # path for static files root /app/public; - access_log /app/log/nginx.access.log; - error_log /app/log/nginx.error.log info; + access_log /val/log/nginx/access.log; + error_log /val/log/nginx/error.log; + set $upstream http://appĀ”; location / { - set $upstream http://app:3000; proxy_pass $upstream; proxy_set_header Host $host;