Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WINSTALLATION and version 3
Div
Classe2e-refDiv

Otp
Floatingfalse

Rp
Rde

You can create Docker containers from the BRIDGE images using docker-compose. This includes the following steps:

...

  1. Create a folder to contain the BRIDGE Docker configuration.

    Info

    Please note that the docker-compose project is named after this folder, and also the created Docker containers. Naming convention for the Docker containers is: <docker-compose project name>_bridge_1.

  2. Create a file docker-compose.yml to the previously created folder. This file should have the following content:

    Code Block
    linenumberstrue
    version: '2.1'
    services:
      bridge:
        image: 'bridge:<version>${VERSION:-7.7.0}'
        hostname: '<your hostname>${BRIDGE_SERVER_HOSTNAME:}'
        restart: always
        ports:
          - '<your host port>${HOST_BRIDGE_PORT:-8080}:8080'
          - '<your host proxy port>:<Docker BRIDGE proxy port>${HOST_PORTS}:${CONTAINER_PORTS}'
        volumes:
          - 'bridge_data:/opt/bridge_data/'
    volumes:
      bridge_data:
        driver: local

    Change Here, you can change the settings of this file as described below.following settings:

    'bridge:7..1'
    LineSettingDescriptionAllowed Values / Example4services/imageProvide the version of the Docker image.
    5
    5services/bridge/hostname Provide your BRIDGE hostname (that matches with the BRIDGE license).hostname: 'bridge.e2e.ch'
    6services/bridge/restart 

    Define if the BRIDGE Docker container should be started automatically, e.g. on host reboot. Delete this line, if you do not want to start the container automatically.

    For more information on Docker restart refer to the Docker documentation pages.

    alwaysRestart BRIDGE container on host reboot.
  3. To define the variables used in the docker-compose.yml, create a .env file in the same folder the docker-compose.yml resides in.

    Map the BRIDGE Docker ports to the ports of the host like <your host port>:<Docker BRIDGE port>.

    Mapping the BRIDGE port is the minimal configuration needed, you can add more port mappings if necessary.
    VariableDescriptionMandatoryAllowed Values / Example
    BRIDGE_SERVER_HOSTNAME Provide your BRIDGE hostname (that matches with the BRIDGE license).(tick)BRIDGE_SERVER_HOSTNAME='bridge.scheer-acme.com'

    COMPOSE_PROJECT_NAME

    Define the Docker compose project name. This name is used as a prefix for all BRIDGE volumes and containers.

    Note

    Once you have defined a project name and installed the BRIDGE, do not change the project name anymore.


    COMPOSE_PROJECT_NAME=bridge_prod
    VERSIONProvide the version of the Docker image.
    VERSION=7.8.0
    HOST_BRIDGE_PORTProvide the BRIDGE port on the host.
    HOST_BRIDGE_PORT=8090
    Default8080
    HOST_PORTS7-9services/bridge/ports 
    Info

    Map BRIDGE Docker ports to the ports of the host. You can specify a single port or a range FROM-TO.
    The HOST_PORTS and CONTAINER_PORTS must have a matching count of port numbers.

    Info

    We recommend to route all service calls via the same proxy, so at least one more proxy mapping will be needed (as shown in the example).


    HOST_PORTS=1443
    HOST_PORTS=1443-1444

    CONTAINER_PORTS

    CONTAINER_PORTS=443
    CONTAINER_PORTS=443-444ports:
      - '18080:8080'
      - '1443:443'

Step 3: Start the Container

...