Für das Rendern Vorschaubildern wurde ein Runtime-Image bereitgestellt. Die dazu gehörigen Delegates werden hier beschrieben.
registry.brandbox.host/runtime/image-processing:1.0.0
...
Das Image kann in einer docker-compose.yml wie folgt eingebunden werden:
Codeblock | ||
---|---|---|
| ||
image-processingapplication: image: registry.brandbox.host/runtime/image-processingbrandbox:19.0.0 hostname: $COMPOSE_PROJECT_NAME domainname: local.brandbox.de volumes: - /mnt/nfsstorage/${COMPOSE_PROJECT_NAME}/temp:/var/www/temp/ - /mnt/nfsstorage/${COMPOSE_PROJECT_NAME}/share:/var/www/share/ - ./www:/var/www env_file: - brandbox.docker.env environment: IMAGE_PROCESSING_HOST: image-processing.${COMPOSE_PROJECT_NAME} IMAGE_PROCESSING_PROTOCOL: http IMAGE_PROCESSING_PORT: 8080 links: - database - image-processing working_dir: /var/www networks: - internal - proxy depends_on: database: aliases: condition: service_healthy - image-processing.${COMPOSE_PROJECT_NAME} : condition: service_started labels: traefik.enable: "true" traefik.backend.loadbalancer.method: "drr" traefik.docker.network: traefik_webgateway traefik.frontend.rule: "Host:$COMPOSE_PROJECT_NAME.local.brandbox.de" traefik.port: 8080 ports: - "8080" |
...
Codeblock |
---|
IMAGE_PROCESSING_HOST=image-processing.$COMPOSE_PROJECT_NAME IMAGE_PROCESSING_PROTOCOL=http IMAGE_PROCESSING_PORT=80809000" - "3000" expose: - "8080" image-processing: image: registry.brandbox.host/runtime/image-processing:1.0.0 volumes: - /mnt/nfsstorage/muenker/develop/temp:/var/www/temp/ - /mnt/nfsstorage/muenker/develop/share:/var/www/share/ networks: internal: aliases: - image-processing.${COMPOSE_PROJECT_NAME} ports: - "8080" |
Cluster-Konfiguration (Kubernetes)
...
Die Umgebungsvariablen IMAGE_PROCESSING_HOST, IMAGE_PROCESSING_PROTOCOL und IMAGE_PROCESSING_PORT müssen wie folgt befüllt werden
Umgebungsvariable | Wert |
---|---|
IMAGE_PROCESSING_HOST | image-processing:8080 |
IMAGE_PROCESSING_PROTOCOL | http |
IMAGE_PROCESSING_PORT | 8080 |