Skip to content

Commit b220417

Browse files
committed
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
1 parent 7b90b70 commit b220417

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.env.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
## PRODUCTION
33
## ---------------------------------
44

5+
# Project Name that will be prefixed to docker containers
6+
PROJECT_NAME=open-data-capture
7+
58
# The domain name to use for your site in the production compose stack
69
SITE_ADDRESS=:80
710
# The domain name to use for the gateway service in the production compose stack

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: open-data-capture
1+
name: ${PROJECT_NAME:-open-data-capture}
22
volumes:
33
caddy_data:
44
services:

0 commit comments

Comments
 (0)