Skip to content

Commit

Permalink
Added WARDEN_ENV_NAME as prefix to each container hostname in compose…
Browse files Browse the repository at this point in the history
… configs - issue #29
  • Loading branch information
davidalger committed Oct 29, 2019
1 parent 551ede9 commit 74c4702
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions environments/magento1.base.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.5"
services:
nginx:
hostname: nginx
hostname: "${WARDEN_ENV_NAME}-nginx"
image: davidalger/warden:nginx-${NGINX_VERSION:-1.16}-alpine
environment:
- NGINX_TEMPLATE=magento1.conf
Expand All @@ -18,7 +18,7 @@ services:
- default

php-fpm:
hostname: php-fpm
hostname: "${WARDEN_ENV_NAME}-php-fpm"
image: davidalger/warden:mage1-fpm-${PHP_VERSION:-7.2}
environment:
- NODE_VERSION=${NODE_VERSION:-10}
Expand All @@ -35,7 +35,7 @@ services:
- warden

php-debug:
hostname: php-debug
hostname: "${WARDEN_ENV_NAME}-php-debug"
image: davidalger/warden:mage1-fpm-${PHP_VERSION:-7.2}-debug
environment:
- NODE_VERSION=${NODE_VERSION:-10}
Expand All @@ -53,7 +53,7 @@ services:
- warden

db:
hostname: mariadb
hostname: "${WARDEN_ENV_NAME}-mariadb"
image: mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
Expand All @@ -70,11 +70,11 @@ services:
- default

redis:
hostname: redis
hostname: "${WARDEN_ENV_NAME}-redis"
image: redis:${REDIS_VERSION:-5.0}-alpine

mailhog:
hostname: mailhog
hostname: "${WARDEN_ENV_NAME}-mailhog"
image: mailhog/mailhog:${MAILHOG_VERSION:-v1.0.0}
labels:
- traefik.enable=true
Expand Down
4 changes: 2 additions & 2 deletions environments/magento1.blackfire.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.5"
services:
php-blackfire:
hostname: php-blackfire
hostname: "${WARDEN_ENV_NAME}-php-blackfire"
image: davidalger/warden:mage1-fpm-${PHP_VERSION:-7.2}-blackfire
depends_on:
- db
Expand All @@ -14,7 +14,7 @@ services:
- default

blackfire-agent:
hostname: blackfire-agent
hostname: "${WARDEN_ENV_NAME}-blackfire-agent"
image: blackfire/blackfire:latest
environment:
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
Expand Down
18 changes: 9 additions & 9 deletions environments/magento2.base.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version: "3.5"
services:
nginx:
hostname: nginx
hostname: "${WARDEN_ENV_NAME}-nginx"
image: davidalger/warden:nginx-${NGINX_VERSION:-1.16}-alpine
environment:
- NGINX_TEMPLATE=magento2.conf
depends_on:
- php-fpm

varnish:
hostname: varnish
hostname: "${WARDEN_ENV_NAME}-varnish"
image: davidalger/warden:varnish-${VARNISH_VERSION:-4.1}-alpine
depends_on:
- nginx
Expand All @@ -21,7 +21,7 @@ services:
- default

php-fpm:
hostname: php-fpm
hostname: "${WARDEN_ENV_NAME}-php-fpm"
image: davidalger/warden:mage2-fpm-${PHP_VERSION:-7.2}
environment:
- NODE_VERSION=${NODE_VERSION:-10}
Expand All @@ -34,7 +34,7 @@ services:
- warden

php-debug:
hostname: php-debug
hostname: "${WARDEN_ENV_NAME}-php-debug"
image: davidalger/warden:mage2-fpm-${PHP_VERSION:-7.2}-debug
environment:
- NODE_VERSION=${NODE_VERSION:-10}
Expand All @@ -48,7 +48,7 @@ services:
- warden

db:
hostname: mariadb
hostname: "${WARDEN_ENV_NAME}-mariadb"
image: mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
Expand All @@ -65,7 +65,7 @@ services:
- default

elasticsearch:
hostname: elasticsearch
hostname: "${WARDEN_ENV_NAME}-elasticsearch"
image: davidalger/warden:elasticsearch-${ELASTICSEARCH_VERSION:-5.6}
labels:
- traefik.enable=true
Expand All @@ -82,11 +82,11 @@ services:
- default

redis:
hostname: redis
hostname: "${WARDEN_ENV_NAME}-redis"
image: redis:${REDIS_VERSION:-5.0}-alpine

rabbitmq:
hostname: rabbitmq
hostname: "${WARDEN_ENV_NAME}-rabbitmq"
image: rabbitmq:${RABBITMQ_VERSION:-3.7.14}-management-alpine
labels:
- traefik.enable=true
Expand All @@ -97,7 +97,7 @@ services:
- default

mailhog:
hostname: mailhog
hostname: "${WARDEN_ENV_NAME}-mailhog"
image: mailhog/mailhog:${MAILHOG_VERSION:-v1.0.0}
labels:
- traefik.enable=true
Expand Down
4 changes: 2 additions & 2 deletions environments/magento2.blackfire.base.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.5"
services:
php-blackfire:
hostname: php-blackfire
hostname: "${WARDEN_ENV_NAME}-php-blackfire"
image: davidalger/warden:mage2-fpm-${PHP_VERSION:-7.2}-blackfire
depends_on:
- db
Expand All @@ -10,7 +10,7 @@ services:
- default

blackfire-agent:
hostname: blackfire-agent
hostname: "${WARDEN_ENV_NAME}-blackfire-agent"
image: blackfire/blackfire:latest
environment:
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
Expand Down
2 changes: 1 addition & 1 deletion environments/magento2.splitdb.checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- checkoutdb

checkoutdb:
hostname: checkoutdb
hostname: "${WARDEN_ENV_NAME}-checkoutdb"
image: mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
Expand Down
2 changes: 1 addition & 1 deletion environments/magento2.splitdb.sales.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- salesdb

salesdb:
hostname: salesdb
hostname: "${WARDEN_ENV_NAME}-salesdb"
image: mariadb:${MARIADB_VERSION:-10.3}
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-magento}
Expand Down

0 comments on commit 74c4702

Please sign in to comment.