Skip to content

Commit

Permalink
wip: Allow to override the name of the mongors services #207 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Nouguier committed Dec 7, 2020
1 parent d4eff2b commit c049516
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/mongors.yml → deploy/mongors.yml.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.5'

services:
mongodb0:
${MONGORS_NAME}db0:
image: ${MONGORS_IMAGE}:${MONGORS_TAG}
command: mongod --replSet mongors
volumes:
Expand All @@ -19,7 +19,7 @@ services:
networks:
- kargo-back-network

mongodb1:
${MONGORS_NAME}db1:
image: ${MONGORS_IMAGE}:${MONGORS_TAG}
command: mongod --replSet mongors
volumes:
Expand All @@ -37,7 +37,7 @@ services:
networks:
- kargo-back-network

mongodb2:
${MONGORS_NAME}db2:
image: ${MONGORS_IMAGE}:${MONGORS_TAG}
command: mongod --replSet mongors
volumes:
Expand Down
3 changes: 3 additions & 0 deletions deploy/mongors_before.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

envsubst "$MONGORS_NAME" < mongors.yml.tpl > mongors.yml

0 comments on commit c049516

Please sign in to comment.