Merge pull request #1280 from SkynetLabs/replicaset-env

Set MongoDB replicaset from .env file
This commit is contained in:
Karol Wypchło 2021-10-18 14:25:55 +01:00 committed by GitHub
commit 6913bdda46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
- Parameterize MongoDB replicaset in `docker-compose.mongodb.yml` via
`SKYNET_DB_REPLICASET` from `.env` file.

View File

@ -9,7 +9,7 @@ x-logging: &default-logging
services: services:
mongo: mongo:
image: mongo:4.4.1 image: mongo:4.4.1
command: --keyFile=/data/mgkey --replSet=skynet command: --keyFile=/data/mgkey --replSet=${SKYNET_DB_REPLICASET:-skynet}
container_name: mongo container_name: mongo
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging