You can create Docker containers from the BRIDGE images using docker-compose. This includes the following steps:
Load the BRIDGE Docker image with
docker image load -i bridge-<version>.tar |
To configure the settings of the Docker image, you need to put your configuration in a docker-compose.yml file.
Create a folder to contain the BRIDGE Docker configuration.
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: |
Create a file docker-compose.yml to the previously created folder. This file should have the following content:
version: '2.1' services: bridge: image: 'bridge:<version>' hostname: '<your hostname>' restart: always ports: - '<your host port>:8080' - '<your host proxy port>:<Docker BRIDGE proxy port>' volumes: - 'bridge_data:/opt/bridge_data/' volumes: bridge_data: driver: local |
Change the settings of this file as described below.
Line | Setting | Description | Allowed Values / Example | ||
---|---|---|---|---|---|
4 | services/image | Provide the version of the Docker image. | 'bridge:7.5.1' | ||
5 | services/bridge/hostname | Provide your BRIDGE hostname (that matches with the BRIDGE license). | hostname: 'bridge.e2e.ch' | ||
6 | services/bridge/restart | Define if the BRIDGE Docker container should be started automatically on host reboot. Delete this line, if you do not want to start the container automatically. | always | Restart BRIDGE container on host reboot. | |
7-9 | services/bridge/ports | Map the BRIDGE Docker ports to the ports of the host like
|
|
You can stop the container using
docker-compose stop |
If you change the Docker configuration in docker-compose.yml, you need to restart the Docker container ( |
If you want to check the installation, continue with Checking the Installation.