采用java -jar启动
nohup java -jar web-0.0.1-SNAPSHOT.jar --spring.profiles.active=test --server.port=8091 &

采用Docker Compose启动
myweb: ##启动容器的名字
    image: web:v826 ##从哪个镜像启动
    ports:
        - "8088:8091" ##web容器内的8091端口映射到主机的8088端口
    links:
        - myredis
        
myredis:
    image: redis

 

相关文章:

  • 2022-01-15
  • 2022-01-07
  • 2021-11-01
  • 2021-07-29
  • 2021-07-11
  • 2022-12-23
  • 2021-07-16
  • 2022-03-05
猜你喜欢
  • 2021-08-21
  • 2021-12-15
  • 2022-02-12
  • 2021-08-27
  • 2021-09-25
  • 2022-12-23
  • 2021-11-04
相关资源
相似解决方案