From 5fa65405eb60cc258dfb79d0d3a3bbb3d17f4640 Mon Sep 17 00:00:00 2001 From: Chingis Sandanov Date: Tue, 20 Nov 2018 09:52:11 +0700 Subject: [PATCH] Add project name prefix to traefik backend labels #343 --- docker-compose.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9adb70bb9a..027a926301 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -69,7 +69,7 @@ services: image: mailhog/mailhog container_name: "${PROJECT_NAME}_mailhog" labels: - - 'traefik.backend=mailhog' + - 'traefik.backend=${PROJECT_NAME}_mailhog' - 'traefik.port=8025' - 'traefik.frontend.rule=Host:mailhog.${PROJECT_BASE_URL}' @@ -101,7 +101,7 @@ services: ## - ./:/var/www/html:cached # User-guided caching ## - docker-sync:/var/www/html # Docker-sync # labels: -# - 'traefik.backend=apache' +# - 'traefik.backend=${PROJECT_NAME}_apache' # - 'traefik.port=80' # - 'traefik.frontend.rule=Host:${PROJECT_BASE_URL}' @@ -117,7 +117,7 @@ services: # VARNISH_CONFIG_PRESET: drupal # VARNISH_PURGE_EXTERNAL_REQUEST_HEADER: X-Real-IP # labels: -# - 'traefik.backend=varnish' +# - 'traefik.backend=${PROJECT_NAME}_varnish' # - 'traefik.port=6081' # - 'traefik.frontend.rule=Host:varnish.${PROJECT_BASE_URL}' @@ -134,7 +134,7 @@ services: # ADMINER_DEFAULT_DB_HOST: $DB_HOST # ADMINER_DEFAULT_DB_NAME: $DB_NAME # labels: -# - 'traefik.backend=adminer' +# - 'traefik.backend=${PROJECT_NAME}_adminer' # - 'traefik.port=9000' # - 'traefik.frontend.rule=Host:adminer.${PROJECT_BASE_URL}' @@ -148,7 +148,7 @@ services: # PHP_UPLOAD_MAX_FILESIZE: 1G # PHP_MAX_INPUT_VARS: 1G # labels: -# - 'traefik.backend=pma' +# - 'traefik.backend=${PROJECT_NAME}_pma' # - 'traefik.port=80' # - 'traefik.frontend.rule=Host:pma.${PROJECT_BASE_URL}' @@ -159,7 +159,7 @@ services: # SOLR_DEFAULT_CONFIG_SET: $SOLR_CONFIG_SET # SOLR_HEAP: 1024m # labels: -# - 'traefik.backend=solr' +# - 'traefik.backend=${PROJECT_NAME}_solr' # - 'traefik.port=8983' # - 'traefik.frontend.rule=Host:solr.${PROJECT_BASE_URL}' @@ -169,7 +169,7 @@ services: # environment: # NODE_SERVICE_KEY: node-service-key # labels: -# - 'traefik.backend=nodejs' +# - 'traefik.backend=${PROJECT_NAME}_nodejs' # - 'traefik.port=8080' # - 'traefik.frontend.rule=Host:nodejs.${PROJECT_BASE_URL}' # volumes: @@ -200,7 +200,7 @@ services: # container_name: "${PROJECT_NAME}_node" # working_dir: /var/www/html/path/to/theme/to/build # labels: -# - 'traefik.backend=node' +# - 'traefik.backend=${PROJECT_NAME}_node' # - 'traefik.port=3000' # - 'traefik.frontend.rule=Host:front.${PROJECT_BASE_URL}' # expose: @@ -242,7 +242,7 @@ services: # depends_on: # - elasticsearch # labels: -# - 'traefik.backend=kibana' +# - 'traefik.backend=${PROJECT_NAME}_kibana' # - 'traefik.port=5601' # - 'traefik.frontend.rule=Host:kibana.php.docker.localhost' @@ -256,7 +256,7 @@ services: # volumes: # - files:/mnt/files # labels: -# - 'traefik.backend=xhprof' +# - 'traefik.backend=${PROJECT_NAME}_xhprof' # - 'traefik.port=8080' # - 'traefik.frontend.rule=Host:xhprof.${PROJECT_BASE_URL}' @@ -267,7 +267,7 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock labels: - - 'traefik.backend=portainer' + - 'traefik.backend=${PROJECT_NAME}_portainer' - 'traefik.port=9000' - 'traefik.frontend.rule=Host:portainer.${PROJECT_BASE_URL}'