I have finally deployed some services to a RPI4 and the services seem to be running fine. Now, I have tried to access the services using the device ip address and the port associated with the service but that does not seem to work.
I have looked at the docs and it seems like only one port (80) can be exposed publicly? Is that correct?
How can I access multiple services running on one device? Following is a couple of my services definitions.
edgex-core-data: image: edgexfoundry/docker-core-data-go-arm64:1.2.0 ports: - "127.0.0.1:48080:48080" - "127.0.0.1:5563:5563" container_name: edgex-core-data hostname: edgex-core-data networks: - edgex-network environment: <<: *common-variables Service_Host: edgex-core-data SecretStore_TokenFile: /tmp/edgex/secrets/edgex-core-data/secrets-token.json volumes: - tmp-secrets:/tmp/edgex/secrets depends_on: - edgex-core-consul - edgex-mongo - edgex-core-metadata - edgex-vault-worker edgex-core-command: image: edgexfoundry/docker-core-command-go-arm64:1.2.0 ports: - "127.0.0.1:48082:48082" container_name: edgex-core-command hostname: edgex-core-command networks: - edgex-network environment: <<: *common-variables Service_Host: edgex-core-command SecretStore_TokenFile: /tmp/edgex/secrets/edgex-core-command/secrets-token.json volumes: - tmp-secrets:/tmp/edgex/secrets depends_on: - edgex-core-consul - edgex-mongo - edgex-core-metadata - edgex-vault-worker
I was expecting that I would be able to call my services from external clients. For example:
Please advise if this is possible.