From f04a2d89d12a5227d0e12e02b97f4d490f2c155d Mon Sep 17 00:00:00 2001 From: Filip Rysavy <29089732+firyx@users.noreply.github.com> Date: Mon, 18 Oct 2021 10:37:29 +0200 Subject: [PATCH] Set MongoDB replicaset from .env file --- changelog/items/other/mongo-replicaset-env.md | 2 ++ docker-compose.mongodb.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog/items/other/mongo-replicaset-env.md diff --git a/changelog/items/other/mongo-replicaset-env.md b/changelog/items/other/mongo-replicaset-env.md new file mode 100644 index 00000000..0dcbb402 --- /dev/null +++ b/changelog/items/other/mongo-replicaset-env.md @@ -0,0 +1,2 @@ +- Parameterize MongoDB replicaset in `docker-compose.mongodb.yml` via + `SKYNET_DB_REPLICASET` from `.env` file. \ No newline at end of file diff --git a/docker-compose.mongodb.yml b/docker-compose.mongodb.yml index ebc085ab..92e687cf 100644 --- a/docker-compose.mongodb.yml +++ b/docker-compose.mongodb.yml @@ -9,7 +9,7 @@ x-logging: &default-logging services: mongo: image: mongo:4.4.1 - command: --keyFile=/data/mgkey --replSet=skynet + command: --keyFile=/data/mgkey --replSet=${SKYNET_DB_REPLICASET} container_name: mongo restart: unless-stopped logging: *default-logging