From 31ea41c69de1fd34a809b08beb69d52e9057866b Mon Sep 17 00:00:00 2001 From: Efthymios Kalyviotis Date: Wed, 12 Nov 2025 02:29:34 +0200 Subject: [PATCH] Addition of environment variable for repositories. --- .env.example | 1 + docker-compose.yml | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 0769e420..6519f3f6 100644 --- a/.env.example +++ b/.env.example @@ -17,3 +17,4 @@ RAILS_MIN_THREADS=4 RAILS_MAX_THREADS=16 PGDATA="/var/lib/postgresql/data" OPDATA="/var/openproject/assets" +REPO_DIR="/repositories" diff --git a/docker-compose.yml b/docker-compose.yml index b59cf4f8..278fc1a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ networks: volumes: pgdata: opdata: + repodir: x-op-restart-policy: &restart_policy restart: unless-stopped @@ -26,6 +27,7 @@ x-op-app: &app IMAP_ENABLED: "${IMAP_ENABLED:-false}" volumes: - "${OPDATA:-opdata}:/var/openproject/assets" + - "${REPO_DIR:-repodir}:/repositories" services: db: @@ -73,7 +75,13 @@ services: labels: - autoheal=true healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8080${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}/health_checks/default"] + test: + [ + "CMD", + "curl", + "-f", + "http://localhost:8080${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}/health_checks/default", + ] interval: 10s timeout: 3s retries: 3