Skip to content

UI does not resolve Service URL #48

@voronczoff

Description

@voronczoff

If i set ALLURE_DOCKER_PUBLIC_API_URL to dynamic http://${STACK_ID}-allure-service:5050, ui throws:

"Network Error" Check if you have access to http://stack1-allure-service:5050/allure-docker-service

Within UI container curl stack1-allure-service:5050 resolves nicely.

I got it running with setting api url to internal ip and host ip, but i would really love it working dynamically.

Both containers are in the same network. Here is docker-compose:

` allure-service:
image: frankescobar/allure-docker-service
container_name: ${STACK_ID}-allure-service
environment:
CHECK_RESULTS_EVERY_SECONDS: 5
KEEP_HISTORY: 1
ports:
- "5050:5050"
volumes:
- ./qa/allure-results:/app/allure-results
- ./qa/allure-reports:/app/default-reports
restart: unless-stopped
networks:
- common

allure-ui:
image: frankescobar/allure-docker-service-ui
container_name: ${STACK_ID}-allure-ui
environment:
ALLURE_DOCKER_PUBLIC_API_URL: http://${STACK_ID}-allure-service:5050
# ALLURE_DOCKER_PUBLIC_API_URL: http://10.13.108.11:5050
ALLURE_DOCKER_PUBLIC_API_URL_PREFIX: ""
ports:
- "5252:5252"
restart: unless-stopped
networks:
- common `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions