-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
102 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
############################## | ||
# 1. COMPOSE PROJECT PREFIX | ||
# ############################ | ||
# necessary such that container | ||
# names do not clash with | ||
# those from other projects | ||
COMPOSE_PROJECT_NAME=energy-householder | ||
|
||
# define which services to boot up! | ||
# for prod you probably want | ||
# "infra_full,project_full" here, | ||
# for staging "project_full" and for | ||
# local dev purposes just the single | ||
# services | ||
COMPOSE_PROFILES=infra_full,project_full | ||
|
||
# ############################ | ||
# 2. INFRASTRUCTURE CONFIGS | ||
# ############################ | ||
# containers should know which | ||
# docker networks to join .. | ||
# see: `docker network ls` | ||
HOST_NET_MONGO=XXX_MONGO_NETWORK_XXX | ||
|
||
# ############################ | ||
# 3. HOST URL FOR PROJECT | ||
# ############################ | ||
TRAEFIK_HOST_URL=XXX_TRAEFIK_HOST_URL_XXX | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
if [ -e $ENV ]; then | ||
ENV_FILE=".env" | ||
else | ||
ENV_FILE=".env.compose.$ENV" | ||
fi | ||
|
||
set -o allexport | ||
. $ENV_FILE | ||
set +o allexport | ||
|
||
cat << EOF | ||
****************************** | ||
* EMATRIC / PROJECT LAUNCHER * | ||
****************************** | ||
Launched Profiles: ${COMPOSE_PROFILES} | ||
EOF | ||
|
||
|
||
if [ -e $ENV ]; then | ||
ENV=prod | ||
fi | ||
|
||
docker compose --env-file $ENV_FILE -f compose.base.yml -f compose.$ENV.yml $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters