Skip to content

Commit

Permalink
WV-2746: Only use network-aliases for localdev.
Browse files Browse the repository at this point in the history
  • Loading branch information
fago committed Jun 6, 2019
1 parent 7205e3c commit 91f41b7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/generate-network-aliases.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/bash -e

######
# Extends the main docker-compose file with network aliases for localdev inner-container hostname resolution.
# This allows containers in the 'traefik' network to connect to this app under the given hostnames.
######

TEMPLATE_FILE=`readlink -f $(dirname $0)`/generate-network-aliases.template.yml
cd `dirname $0`/..
source dotenv/loader.sh

# Only generate this for lagoon environments.
if [[ ! $PHAPP_ENV_TYPE = "lagoon" ]]; then
# Only generate this for the localdev environment.
if [[ ! $PHAPP_ENV = "localdev" ]]; then
rm -f docker-compose.overrides.aliases.yml
exit 0
fi
Expand Down

0 comments on commit 91f41b7

Please sign in to comment.