question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After docker-compose is started, access via domain name, web UI base href displays ip

See original GitHub issue
  • verdaccio version: 5.2.2
  • os: linux
  • platform: docker
  • docker-compose: 1.29.2

After docker-compose is started for a period of time, it is accessed through the domain name. The base herf of the web page is displayed as ip. After docker-compose restart, it returns to normal, but it will become ip again after a period of time.

image

// docker-compose.yaml
version: '3.1'

services:
  verdaccio:
    image: verdaccio/verdaccio
    container_name: "verdaccio"
    networks:
      - node-network
    environment:
      - VERDACCIO_PORT=4873
    ports:
      - "80:4873"
    volumes:
      - "./storage:/verdaccio/storage"
      - "./conf:/verdaccio/conf"
      - "./plugins:/verdaccio/plugins"
networks:
  node-network:
    driver: bridge   

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
juanpicadocommented, Dec 3, 2021

No, 😛 why I would do that? 😃 I want you to be a good OSS citizen updating regularly 😄

Hopefully early Q1 next year I can remove the alpha, just want to finish some work. We are not that far.

0reactions
xiaobiaoxcommented, May 30, 2022

for 5.x, as https://github.com/verdaccio/verdaccio/blob/5.x/src/api/web/html/renderHTML.ts#L107.
open verdaccio config file, eg config/config.yaml. change html_cache to false, restart server

Read more comments on GitHub >

github_iconTop Results From Across the Web

FME Server on Docker: Service URL not picking up host name
Option 2: Access FME Server using the desired domain name​​ 1. Set the EXTERNALHOSTNAME environment variable to the IP address of the host ......
Read more >
Compose specification - Docker Documentation
A Service is an abstract concept implemented on platforms by running the same container image (and configuration) one or more times. Services communicate...
Read more >
Networking with standalone containers - Docker Documentation
Use user-defined bridge networks shows how to create and use your own custom bridge networks, to connect containers running on the same Docker...
Read more >
Networking in Compose - Docker Documentation
When you run docker compose up , the following happens: A network called myapp_default is created. A container is created using web 's...
Read more >
Docker Engine post-installation steps
These optional post-installation procedures shows you how to configure your Linux ... When the Docker daemon starts, it creates a Unix socket accessible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found