From b220417055fa04a5b4475f6f5a259592fceb2bb5 Mon Sep 17 00:00:00 2001 From: thomasbeaudry Date: Fri, 27 Mar 2026 14:07:50 -0400 Subject: [PATCH] Add the variable to the .env file to customize the docker container's prefix. When setting up an ODC, it's easy to forgot to modify the docker-compose.yaml (and only focus on the .env), so by having this variable in the .env, you can completely ignore the docker-compose.yaml. When managing multiple ODCs, this variable needs to be different for each instance, so it's useful to have --- .env.template | 3 +++ docker-compose.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.template b/.env.template index 56370529d..248598885 100644 --- a/.env.template +++ b/.env.template @@ -2,6 +2,9 @@ ## PRODUCTION ## --------------------------------- +# Project Name that will be prefixed to docker containers +PROJECT_NAME=open-data-capture + # The domain name to use for your site in the production compose stack SITE_ADDRESS=:80 # The domain name to use for the gateway service in the production compose stack diff --git a/docker-compose.yaml b/docker-compose.yaml index 010bbdcb3..73f286087 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,4 +1,4 @@ -name: open-data-capture +name: ${PROJECT_NAME:-open-data-capture} volumes: caddy_data: services: