From ee746f2e73bcb6929f6389695b05dd3060478402 Mon Sep 17 00:00:00 2001 From: Chris Black Date: Sat, 3 Aug 2024 01:17:37 -0700 Subject: [PATCH 1/2] make a named volume for the Bety logs mountpoint Best I can tell nothing gets written to this, but because the Bety image specifies this path as a VOLUME, we were creating a new anonymous-but-permanent volume every time Compose spun up --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 349e85cca7..92af1a03a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -79,6 +79,8 @@ services: - SECRET_KEY_BASE=${BETY_SECRET_KEY:-notasecret} - RAILS_RELATIVE_URL_ROOT=/bety - LOCAL_SERVER=${BETY_LOCAL_SERVER:-99} + volumes: + - bety:/home/bety/log depends_on: - postgres labels: @@ -346,6 +348,7 @@ networks: volumes: traefik: postgres: + bety: rabbitmq: pecan: rstudio: From 0a8767fa04b63b9225e25f4342343c7aa72d1c7d Mon Sep 17 00:00:00 2001 From: Chris Black Date: Sat, 3 Aug 2024 01:25:05 -0700 Subject: [PATCH 2/2] prod too --- docker-compose.prod.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 92343d2c63..6de05893cf 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -81,6 +81,8 @@ services: - SECRET_KEY_BASE=${BETY_SECRET_KEY:-notasecret} - RAILS_RELATIVE_URL_ROOT=/bety - LOCAL_SERVER=${BETY_LOCAL_SERVER:-99} + volumes: + - bety:/home/bety/log depends_on: - postgres labels: @@ -279,6 +281,7 @@ networks: volumes: traefik: postgres: + bety: rabbitmq: pecan: rstudio: