Good afternoon @glodea ,
Happy to hear everything works!
Now onto the issues:
To add your own custom map, you first need to download your own map, then add it as a Docker mount to the manager. Then you would need to set the in-container directory of the map file as a full path.
For example, you can download your own MBTILES from here: here or here. I’ll assume you have it stored at /Users/panos/openremote/customMap.mbtiles
To then add the file in the container, you need to add it as a volume. For example:
manager:
image: pankalog/fleet-management:${MANAGER_VERSION:-latest}
restart: always
depends_on:
keycloak:
condition: service_healthy
volumes:
- manager-data:/storage
- deployment-data:/deployment
- /Users/panos/openremote/customMap.mbtiles:/map/customMap.mbtiles
environment:
# Here are some typical environment variables you want to set
# see openremote/profile/deploy.yml for details
OR_ADMIN_PASSWORD: ${OR_ADMIN_PASSWORD:-secret}
OR_SETUP_TYPE: # Typical values to support are staging and production
OR_SETUP_RUN_ON_RESTART:
OR_EMAIL_HOST:
OR_EMAIL_USER:
OR_EMAIL_PASSWORD:
OR_EMAIL_X_HEADERS:
OR_EMAIL_FROM:
OR_EMAIL_ADMIN:
OR_HOSTNAME: ${OR_HOSTNAME:-localhost}
OR_ADDITIONAL_HOSTNAMES: ${OR_ADDITIONAL_HOSTNAMES:-}
OR_SSL_PORT: ${OR_SSL_PORT:--1}
OR_DEV_MODE: ${OR_DEV_MODE:-false}
OR_MAP_TILES_PATH: '/map/customMap.mbtiles'
Theoretically, this would set the file that the manager would use for the map to the file you have mounted there.
About OR_MAP_SETTINGS_PATH
, this defines the JSON file to be used by the manager to set various settings related to the map, like the borders, maximum and minimum zoom, box zoom, etc. If you just want to get up and running, you can ignore this for now and edit it on OpenRemote’s UI directly. If you want to take the JSON file from it, access the jsonsettings.json
file in the container here: /deployment/map/mapsettings.json
or by requesting https://{your FQDN}/api/master/map
, but only take the options
element. Or, if you do want to set this file, you would again have to mount it into the manager in the same way, edit your JSON file using this file as a base.
About the second question, the legacy server is a bit more difficult to configure, because of all of the environment variables that need to be set. You can either add the docker container into the main OpenRemote docker-compose.yml file or run it independently. In any case, you would have to set the environment variables using this file, adjusting for your case: TeltonikaLegacyCodecSupport/.env at main · pankalog/TeltonikaLegacyCodecSupport · GitHub
Most/some of them can be left untouched (for docker-compose to use the default values automatically), but I would have to listen to what your issues are to help you further.
Best of luck!
Panos