Skip to content
Snippets Groups Projects
Commit 4d509a3f authored by jurgenhaas's avatar jurgenhaas
Browse files

#11 Fix the syntax for labels to make it compatible with pip docker-compose version 1.17

parent 702cfff1
No related branches found
No related tags found
No related merge requests found
Pipeline #
version: "2" version: '2'
services: services:
mariadb: mariadb:
...@@ -55,7 +55,7 @@ services: ...@@ -55,7 +55,7 @@ services:
- php - php
environment: environment:
{% if webserver.type == 'nginx' %} {% if webserver.type == 'nginx' %}
NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off" NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: 'off'
NGINX_ERROR_LOG_LEVEL: debug NGINX_ERROR_LOG_LEVEL: debug
{% elseif webserver.type == 'apache' %} {% elseif webserver.type == 'apache' %}
APACHE_LOG_LEVEL: debug APACHE_LOG_LEVEL: debug
...@@ -65,9 +65,9 @@ services: ...@@ -65,9 +65,9 @@ services:
volumes: volumes:
- ./:/var/www/html - ./:/var/www/html
labels: labels:
- 'traefik.backend={{ projectname }}_{{ webserver.type }}_1' traefik.backend: '{{ projectname }}_{{ webserver.type }}_1'
- 'traefik.port=80' traefik.port: '80'
- 'traefik.frontend.rule=Host:{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:{{ projectname }}.docker.localhost'
{% if varnish.enable %} {% if varnish.enable %}
varnish: varnish:
...@@ -79,9 +79,9 @@ services: ...@@ -79,9 +79,9 @@ services:
VARNISH_BACKEND_HOST: {{ webserver.type }} VARNISH_BACKEND_HOST: {{ webserver.type }}
VARNISH_BACKEND_PORT: 80 VARNISH_BACKEND_PORT: 80
labels: labels:
- 'traefik.backend={{ projectname }}_varnish_1' traefik.backend: '{{ projectname }}_varnish_1'
- 'traefik.port=6081' traefik.port: '6081'
- 'traefik.frontend.rule=Host:varnish.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:varnish.{{ projectname }}.docker.localhost'
{% endif %} {% endif %}
redis: redis:
...@@ -92,9 +92,9 @@ services: ...@@ -92,9 +92,9 @@ services:
environment: environment:
ADMINER_SALT: adminer-salt ADMINER_SALT: adminer-salt
labels: labels:
- 'traefik.backend={{ projectname }}_adminer_1' traefik.backend: '{{ projectname }}_adminer_1'
- 'traefik.port=9000' traefik.port: '9000'
- 'traefik.frontend.rule=Host:adminer.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:adminer.{{ projectname }}.docker.localhost'
pma: pma:
image: 'phpmyadmin/phpmyadmin' image: 'phpmyadmin/phpmyadmin'
...@@ -105,9 +105,9 @@ services: ...@@ -105,9 +105,9 @@ services:
PHP_UPLOAD_MAX_FILESIZE: 1G PHP_UPLOAD_MAX_FILESIZE: 1G
PHP_MAX_INPUT_VARS: 1G PHP_MAX_INPUT_VARS: 1G
labels: labels:
- 'traefik.backend={{ projectname }}_pma_1' traefik.backend: '{{ projectname }}_pma_1'
- 'traefik.port=80' traefik.port: '80'
- 'traefik.frontend.rule=Host:pma.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:pma.{{ projectname }}.docker.localhost'
{% if solr.enable %} {% if solr.enable %}
solr: solr:
...@@ -115,17 +115,17 @@ services: ...@@ -115,17 +115,17 @@ services:
environment: environment:
SOLR_HEAP: 1024m SOLR_HEAP: 1024m
labels: labels:
- 'traefik.backend={{ projectname }}_solr_1' traefik.backend: '{{ projectname }}_solr_1'
- 'traefik.port=8983' traefik.port: '8983'
- 'traefik.frontend.rule=Host:solr.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:solr.{{ projectname }}.docker.localhost'
{% endif %} {% endif %}
mailhog: mailhog:
image: 'mailhog/mailhog' image: 'mailhog/mailhog'
labels: labels:
- 'traefik.backend={{ projectname }}_mailhog_1' traefik.backend: '{{ projectname }}_mailhog_1'
- 'traefik.port=8025' traefik.port: '8025'
- 'traefik.frontend.rule=Host:mailhog.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:mailhog.{{ projectname }}.docker.localhost'
{% if node.enable %} {% if node.enable %}
nodejs: nodejs:
...@@ -133,9 +133,9 @@ services: ...@@ -133,9 +133,9 @@ services:
environment: environment:
NODE_SERVICE_KEY: '{{ node.key }}' NODE_SERVICE_KEY: '{{ node.key }}'
labels: labels:
- 'traefik.backend=nodejs' traefik.backend: 'nodejs'
- 'traefik.port=8080' traefik.port: '8080'
- 'traefik.frontend.rule=Host:nodejs.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:nodejs.{{ projectname }}.docker.localhost'
volumes: volumes:
- ./{{ node.path }}:/app - ./{{ node.path }}:/app
command: sh -c 'npm install && npm run start' command: sh -c 'npm install && npm run start'
...@@ -144,11 +144,11 @@ services: ...@@ -144,11 +144,11 @@ services:
image: 'node:alpine' image: 'node:alpine'
working_dir: /app working_dir: /app
labels: labels:
- 'traefik.backend={{ projectname }}_node_1' traefik.backend: '{{ projectname }}_node_1'
- 'traefik.port=3000' traefik.port: '3000'
- 'traefik.frontend.rule=Host:front.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:front.{{ projectname }}.docker.localhost'
expose: expose:
- "3000" - '3000'
volumes: volumes:
- ./{{ node.path }}:/app - ./{{ node.path }}:/app
command: sh -c 'npm install && npm run start' command: sh -c 'npm install && npm run start'
...@@ -169,7 +169,7 @@ services: ...@@ -169,7 +169,7 @@ services:
image: 'arachnysdocker/athenapdf-service' image: 'arachnysdocker/athenapdf-service'
environment: environment:
WEAVER_AUTH_KEY: '{{ athenapdf.key }}' WEAVER_AUTH_KEY: '{{ athenapdf.key }}'
WEAVER_ATHENA_CMD: "athenapdf -S" WEAVER_ATHENA_CMD: 'athenapdf -S'
WEAVER_MAX_WORKERS: 10 WEAVER_MAX_WORKERS: 10
WEAVER_MAX_CONVERSION_QUEUE: 50 WEAVER_MAX_CONVERSION_QUEUE: 50
WEAVER_WORKER_TIMEOUT: 90 WEAVER_WORKER_TIMEOUT: 90
...@@ -191,9 +191,9 @@ services: ...@@ -191,9 +191,9 @@ services:
environment: environment:
WEBGRIND_PROFILER_DIR: '/mnt/files/xdebug/profiler' WEBGRIND_PROFILER_DIR: '/mnt/files/xdebug/profiler'
labels: labels:
- 'traefik.backend={{ projectname }}_webgrind_1' traefik.backend: '{{ projectname }}_webgrind_1'
- 'traefik.port=8080' traefik.port: '8080'
- 'traefik.frontend.rule=Host:webgrind.{{ projectname }}.docker.localhost' traefik.frontend.rule: 'Host:webgrind.{{ projectname }}.docker.localhost'
volumes: volumes:
- files:/mnt/files - files:/mnt/files
{% endif %} {% endif %}
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