Unit 5: Install FMR on Any Port

By default, FMR installs on port 8080. There are a number of reasons why you may want to install FMR on a different port instead, such as to avoid conflicts with other software (e.g. Stat Suite also uses port 8080) or to run multiple versions of FMR at the same time.

Installing FMR on any port

  • [FMR-name] is the name of the FMR docker image (default fmr)
  • [FMR-port] is the port number that you wish to use for FMR (default 8080)

The command to install FMR is the following:

  • docker container create –name [FMR-name] –env SERVER_URL=http://localhost:[FMR-port] –publish [FMR-port]:8080 sdmxio/fmr-mysql:latest

Examples of how to install FMR on any port

Let’s review two examples.

Select each tab to learn more.

Example 1
Two instances of FMR, one on port 8081 and another on port 8082.

NOTE: Both instances of FMR can be running at the same time.

  • Name FMRstaging on port 8081 and
  • Name FMRproduction on port 8082

  • docker container create --name FMRstaging --env SERVER_URL=http://localhost:8081 --publish 8081:8080 sdmxio/fmr-mysql:latest

  • docker container create --name FMRproduction --env SERVER_URL=http://localhost:8082 --publish 8082:8080 sdmxio/fmr-mysql:latest
Example 2
Two instances of FMR on port 8083.

NOTE: Only one instance of FMR can be running on the same port at the same time, use Docker Desktop to start/stop the FMR instances according to your needs.

  • Name FMRstaging on port 8083 and
  • Name FMRproduction on port 8083

  • docker container create --name FMRstaging --env SERVER_URL=http://localhost:8083 --publish 8083:8080 sdmxio/fmr-mysql:latest

  • docker container create --name FMRproduction --env SERVER_URL=http://localhost:8083 --publish 8083:8080 sdmxio/fmr-mysql:latest

What do you know?

Can two instances of FMR be installed on the same port at the same time?

Select your answer and then select Submit.

What do you know?

Can two instances of FMR be running on the same port at the same time?

Select your answer and then select Submit.

Coming next …

In the final unit you’ll learn how to synchronise content between SDMX registries.