I tried to change the default port of localhost.openiap.io to use the port 4000 but I could didn’t make it work properly. I can access to http://localhost.openiap.io/ however when I create a new agent (NodeRED instance), and try to access it I am getting next error:
No webpage was found for the web address: http://green-feather-08c9.localhost.openiap.io/auth/strategy/callback/?code=lBragI1mLXCz75gdJoHmODp3a-QznXVnIP1p-Gt8Bzz&state=J%2Bag4d6%2Fd9%2BgpyaQPw02RJnk
Also all the links associated to the host localhost.openiap.io don’t include the port (4000) in the Url, I have to add it manually.
Any idea/suggestion about what I am missing?
Thanks and regards.
This is the config file with some changes I made:
version: "3.3"
services:
mongodb:
image: mongo
restart: always
command: "--bind_ip_all --replSet rs0"
environment:
- MONGO_REPLICA_SET_NAME=rs0
volumes:
- mongodb_data:/data/db
mongosetup:
image: mongo
depends_on:
- mongodb
restart: "no"
command: >
mongosh --host mongodb:27017 --eval
'
db = (new Mongo("mongodb:27017")).getDB("openflow");
config = {
"_id" : "rs0",
"members" : [
{
"_id" : 0,
"host" : "mongodb:27017"
}
]
};
rs.initiate(config);
'
traefik:
image: traefik
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:4000"
ports:
- "4000:4000"
restart: always
volumes:
- "//var/run/docker.sock:/var/run/docker.sock:ro"
api:
labels:
- traefik.enable=true
- traefik.frontend.passHostHeader=true
- traefik.http.routers.http-router.entrypoints=web
- traefik.http.routers.http-router.rule=Host(`localhost.openiap.io`)
- traefik.http.routers.http-router.service=http-service
- traefik.http.services.http-service.loadbalancer.server.port=3000
- traefik.http.routers.grpc-router.rule=Host(`grpc.localhost.openiap.io`)
- traefik.http.routers.grpc-router.service=grpc-service
- traefik.http.routers.grpc-router.entrypoints=web
- traefik.http.services.grpc-service.loadbalancer.server.port=50051
- traefik.http.services.grpc-service.loadbalancer.server.scheme=h2c
image: openiap/openflow
ports:
- "5858:5858"
deploy:
replicas: 1
pull_policy: always
restart: always
volumes:
- "//var/run/docker.sock:/var/run/docker.sock"
depends_on:
- rabbitmq
- mongodb
environment:
- auto_create_users=true
- auto_create_domains=
- websocket_package_size=25000
- websocket_max_package_count=1048576
- protocol=http
- port=3000
- domain=localhost.openiap.io
- log_with_colors=false
# uncomment below 2 lines, if you have set replicas above 1
# - enable_openflow_amqp=true
# - amqp_prefetch=25
# uncomment to add agents to the same docker compose project ( will breake running docker compose up -d if any agents running )
# - agent_docker_use_project=true
- agent_oidc_userinfo_endpoint=http://api:3000/oidc/me
- agent_oidc_issuer=http://localhost.openiap.io:4000/oidc
- agent_oidc_authorization_endpoint=http://localhost.openiap.io:4000/oidc/auth
- agent_oidc_token_endpoint=http://api:3000/oidc/token
- amqp_url=amqp://guest:guest@rabbitmq
- mongodb_url=mongodb://mongodb:27017/?replicaSet=rs0
- mongodb_db=openflow
- aes_secret=O1itlrmA47WzxPj95YHD2sZs7IchYaQI25mQ
- api_ws_url=ws://localhost.openiap.io:4000
- saml_federation_metadata=http://localhost.openiap.io:4000/issue/FederationMetadata/2007-06/FederationMetadata.xml
- saml_issuer=uri:localhost.openiap.io:4000
- port:4000
mongoexpress:
labels:
- "traefik.enable=true"
- "traefik.http.routers.mongoexpress.rule=Host(`express.localhost.openiap.io`)"
- "traefik.http.routers.mongoexpress.entrypoints=web"
- "traefik.http.services.mongoexpress.loadbalancer.server.port=8081"
image: "mongo-express"
restart: always
environment:
- ME_CONFIG_MONGODB_SERVER=mongodb
rabbitmq:
labels:
- "traefik.enable=true"
- "traefik.http.routers.rabbitmq.rule=Host(`mq.localhost.openiap.io`)"
- "traefik.http.routers.rabbitmq.entrypoints=web"
- "traefik.http.services.rabbitmq.loadbalancer.server.port=15672"
image: rabbitmq:3-management
restart: always
volumes:
mongodb_data:
driver: local