Code Monkey home page Code Monkey logo

Comments (3)

zhangsean avatar zhangsean commented on June 19, 2024

我发现问题了,项目application.yml文件里面指定了spring.server.address 指定了 127.0.0.1,导致只能监听本地。
把Dockerfile里面把这个配置置空即可容器外部端口映射访问。参考我的Dockerfile:

cp -v /opt/davinci/config/application.yml.example /opt/davinci/config/application.yml \
&& sed -i 's|address:\ 127.0.0.1|address:|' config/application.yml

from davinci-docker.

Phukety avatar Phukety commented on June 19, 2024

我发现问题了,项目application.yml文件里面指定了spring.server.address 指定了 127.0.0.1,导致只能监听本地。
把Dockerfile里面把这个配置置空即可容器外部端口映射访问。参考我的Dockerfile:

cp -v /opt/davinci/config/application.yml.example /opt/davinci/config/application.yml \
&& sed -i 's|address:\ 127.0.0.1|address:|' config/application.yml

感谢!,真是这个问题

from davinci-docker.

zhangsean avatar zhangsean commented on June 19, 2024

我为Davinci做了docker镜像,zhangsean/davinci,每天监控�davinci版本发布自动构建镜像,有基于alpine和openj9两个jre的版本,一个镜像小,一个内存占用小,大家可以试试。

from davinci-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.