Skip to content
Snippets Groups Projects
Commit 7bceb7c7 authored by jurgenhaas's avatar jurgenhaas
Browse files

Include the projectname into the backend name for Traefik such that multi...

Include the projectname into the backend name for Traefik such that multi project routing does work correctly
parent 2918f86e
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -32,7 +32,7 @@ services:
volumes:
- ./:/var/www/html
labels:
- 'traefik.backend=nginx'
- 'traefik.backend={{ projectname }}_nginx_1'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:{{ projectname }}.docker.localhost'
......@@ -46,7 +46,7 @@ services:
VARNISH_BACKEND_HOST: nginx
VARNISH_BACKEND_PORT: 80
labels:
- 'traefik.backend=varnish'
- 'traefik.backend={{ projectname }}_varnish_1'
- 'traefik.port=6081'
- 'traefik.frontend.rule=Host:varnish.{{ projectname }}.docker.localhost'
{% endif %}
......@@ -63,7 +63,7 @@ services:
PHP_UPLOAD_MAX_FILESIZE: 1G
PHP_MAX_INPUT_VARS: 1G
labels:
- 'traefik.backend=pma'
- 'traefik.backend={{ projectname }}_pma_1'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:pma.{{ projectname }}.docker.localhost'
......@@ -73,7 +73,7 @@ services:
environment:
SOLR_HEAP: 1024m
labels:
- 'traefik.backend=solr'
- 'traefik.backend={{ projectname }}_solr_1'
- 'traefik.port=8983'
- 'traefik.frontend.rule=Host:solr.{{ projectname }}.docker.localhost'
{% endif %}
......@@ -81,7 +81,7 @@ services:
mailhog:
image: mailhog/mailhog
labels:
- 'traefik.backend=mailhog'
- 'traefik.backend={{ projectname }}_mailhog_1'
- 'traefik.port=8025'
- 'traefik.frontend.rule=Host:mailhog.{{ projectname }}.docker.localhost'
......@@ -90,7 +90,7 @@ services:
image: node:7-alpine
working_dir: /app
labels:
- 'traefik.backend=node'
- 'traefik.backend={{ projectname }}_node_1'
- 'traefik.port=3000'
- 'traefik.frontend.rule=Host:front.{{ projectname }}.docker.localhost'
expose:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment