Skip to content

Commit

Permalink
Add project name prefix to traefik backend labels #343
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Nov 20, 2018
1 parent 8a2e233 commit 5fa6540
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}'

Expand Down Expand Up @@ -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}'

Expand All @@ -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}'

Expand All @@ -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}'

Expand All @@ -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}'

Expand All @@ -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}'

Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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'

Expand All @@ -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}'

Expand All @@ -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}'

Expand Down

0 comments on commit 5fa6540

Please sign in to comment.